Found 601 Articles for Front End Scripts

Create a small-caps effect for CSS

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

432 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          

Make a font italic with CSS

varma
Updated on 30-Jan-2020 09:24:23

268 Views

To make a font italic, use the font-style property. You can try to run the following code to learn how to work with the font-style property:Example                            This text is in italic style          

Change the font face with CSS

Govinda Sai
Updated on 30-Jan-2020 09:23:13

257 Views

To change the font face, use the font-family property.ExampleYou can try to run the following code to learn how to work with the font-family property:                            Demo content          

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.          

Usage of background-attachment property in CSS

vanithasree
Updated on 30-Jan-2020 09:23:52

73 Views

The background-attachment property is used to control the scrolling of an image in the background.ExampleYou can try to run the following code to learn how to work with the background-attachment property:                    body {             background-image: url('/css/images/css.jpg');             background-repeat: no-repeat;             background-attachment: fixed;          }                     The background-image is fixed. Try to scroll down the page.       The background-image is ... Read More

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

454 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.    

Repeat the background image with CSS

seetha
Updated on 30-Jan-2020 09:19:53

267 Views

The background-repeat property is used to control the repetition of an image in the background. 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("/images/seaborn-4.jpg?v = 2");             background-repeat: repeat;          }                     Tutorials Point    

Shorthand property to set the background in CSS

Lakshmi Srinivas
Updated on 30-Jan-2020 08:58:06

80 Views

You can use the background property to set all the background properties at once such as background image position, repeat, etc:Example                            This parapgraph has fixed repeated background image.          

Advertisements