George John has Published 1081 Articles

CSS border-top-right-radius property

George John

George John

Updated on 16-Mar-2020 07:42:59

73 Views

Use the border-top-right radius property in CSS to set the top right radius border. You can try to run the following code to implement border-top-right-radius property −ExampleLive Demo                    #rcorner {             border-radius: 25px;             border-top-right-radius: 45px;             background: orange;             padding: 20px;             width: 200px;             height: 150px;          }                     Rounded corners!    

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

446 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

176 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

897 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

689 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

599 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

Advertisements