Javascript Articles - Page 420 of 534

Set the font style with CSS

radhakrishna
Updated on 30-Jan-2020 09:22:11

200 Views

To set the font style, use the font-style property. Set the font to italic, normal and oblique.ExampleYou can try to run the following code to set the font-style to italic with CSS:                            Europe, Australia, South America are continents.          

Create a small-caps effect for CSS

Abhinaya
Updated on 30-Jan-2020 09:25:02

547 Views

To create a small-caps effect, use the font-variant property.ExampleYou can try to run the following code to learn how to work with font-variant property in CSS:                            Asia, Antartica, Africa are continents          

Usage of background property in CSS

Sreemaha
Updated on 30-Jan-2020 09:22:35

103 Views

The background property is used as a shorthand to specify the number of other background properties such as image, position, repeat, etc.                            This parapgraph has fixed repeated background image.          

Set the Background Attachment with CSS

Ramu Prasad
Updated on 30-Jan-2020 09:21:35

104 Views

To set the background-attachment, use the background-attachment property. Background attachment determines whether a background image is fixed or scrolls with the rest of the page.ExampleYou can try to run the following code to learn how to work with the background-attachment property to set fixed background image:                    body {             background-image: url('/css/images/css.jpg');             background-repeat: no-repeat;             background-attachment: fixed;          }                     The ... Read More

Set the Background Image Position with CSS

mkotla
Updated on 30-Jan-2020 09:20:57

592 Views

To set the background image position, use the background-position property. You can try to run the following code to learn how to work with the background-position property:ExampleIt sets the background image position 80 pixels away from the left side:                    body {             background-image: url("/css/images/css.jpg");             background-position:80px;          }                     Tutorials point    

Usage of background-color property in CSS

Sravani S
Updated on 30-Jan-2020 09:20:25

130 Views

The background-color property is used to set the background color of an element.ExampleYou can try to run the following code to learn how to work with the background-color property:                         This text has a blue background color.    

Which property is used in CSS to control the repetition of an image in the background?

Samual Sam
Updated on 30-Jan-2020 08:54:53

1K+ Views

To control the repetition of an image in the background, use the background-repeat property. You can use no-repeat value for the background-repeat property if you do not want to repeat an image, in this case, the image will display only once.ExampleYou can try to run the following code to learn how to work with the background-repeat property:                    body {             background-image: url("/css/images/css.jpg");             background-repeat: repeat;          }                     Tutorials Point    

Set the background color of an element with CSS

karthikeya Boyini
Updated on 30-Jan-2020 08:51:24

413 Views

To set the background color of an element, use the background-color property.ExampleYou can try to run the following code to learn how to work with the background-color property:                              This text has a blue background color.          

What is pica? How to set the font size in CSS using pica?

Samual Sam
Updated on 30-Jan-2020 08:50:41

902 Views

A pica is equivalent to 12 points; thus, there are 6 picas per inch. You can try to run the following code to set font size using pica (pc):Example                            This div has font size set in pica.          

How to set font size using CSS Measurement Unit vmin?

mkotla
Updated on 30-Jan-2020 08:43:49

234 Views

To set font size with CSS Measurement Unit vmin, try to run the following code:                            This div has relative positioning.          

Advertisements