George John has Published 1080 Articles

CSS speak-numeral property

George John

George John

Updated on 16-Mar-2020 07:28:32

118 Views

The speak-numeral property controls how numerals are spoken.The possible values aredigits − Speak the numeral as individual digits. Thus, "237" is spoken "Two Three Seven".continuous − Speak the numeral as a full number. Thus, "237" is spoken "Two hundred thirty seven". Word representations are language-dependent.

Controlling Pagination with CSS

George John

George John

Updated on 16-Mar-2020 07:21:39

483 Views

To control pagination, use the page-break-before, page-break-after, and page-break-inside properties.Both the page-break-before and page-break-after accept the auto, always, avoid, left, and right keywords.The keyword auto is the default; it lets the browser generate page breaks as needed. The keyword always forces a page break before or after the element, while avoid suppresses a ... Read More

How to specify the target media types of a set of CSS rules

George John

George John

Updated on 16-Mar-2020 07:11:48

197 Views

The media attribute on the Link element specifies the target media of an external style sheet −Example    

Fade In Right Animation Effect with CSS

George John

George John

Updated on 13-Mar-2020 13:25:42

272 Views

To implement Fade In Right Animation Effect on an image with CSS, you can try to run the following code −ExampleLive Demo                    .animated {             background-image: url(/css/images/logo.png);             ... Read More

Create a mirror image with CSS

George John

George John

Updated on 13-Mar-2020 13:15:51

936 Views

The flip effect is used to create a mirror image of the object. The following parameters can be used in this filter -ParameterDescriptionFlipHCreates a horizontal mirror imageFlipVCreates a vertical mirror imageExampleYou can try to run the following code to create a mirror imageLive Demo                               Text Example:       CSS Tutorials    

Usage of CSS !important rule

George John

George John

Updated on 13-Mar-2020 13:08:40

199 Views

The !important rule provides a way to make your CSS cascade. It also includes the rules that are to be applied always. A rule having a !important property will always be applied, no matter where that rule appears in the CSS document.For example, in the following style sheet, the paragraph ... Read More

Java program to round a number

George John

George John

Updated on 13-Mar-2020 10:43:07

720 Views

The java.lang.Math.round(float a) returns the closest int to the argument. The result is rounded to an integer by adding 1/2, taking the floor of the result, and casting the result to type int. Special cases −If the argument is NaN, the result is 0.If the argument is negative infinity or ... Read More

Java program to find the area of a triangle

George John

George John

Updated on 13-Mar-2020 08:19:28

4K+ Views

Area of a triangle is half the product of its base and height. Therefore, to calculate the area of a triangle.Get the height of the triangle form the user.Get the base of the triangle form the user. Calculate their product and divide the result with 2.Print the final result.Exampleimport java.util.Scanner; public ... Read More

Java program to read numbers from users

George John

George John

Updated on 13-Mar-2020 07:08:41

620 Views

The java.util.Scanner class is a simple text scanner which can parse primitive types and strings using regular expressions.1. A Scanner breaks its input into tokens using a delimiter pattern, which by default matches whitespace.2. A scanning operation may block waiting for input.3. A Scanner is not safe for multi-threaded use ... Read More

How to generate a 24bit hash using Python?

George John

George John

Updated on 05-Mar-2020 10:11:26

588 Views

A random 24 bit hash is just random 24 bits. You can generate these just using the random module. exampleimport random hash = random.getrandbits(24) print(hex(hash))OutputThis will give the output0x94fbee

Advertisements