CSS Articles

Page 12 of 130

Style the document's root element with CSS

Ankith Reddy
Ankith Reddy
Updated on 11-Mar-2026 113 Views

To style document’s root element, use the CSS: root selector.ExampleYou can try to run the following code to implement the: root Selector                    :root {             background: blue;             color: white;          }                     Heading       This is demo text.    

Read More

Role of CSS: valid Selector

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 215 Views

Use the CSS : valid selector to style all elements with a valid value .ExampleYou can try to run the following code to implement the :valid Selector                    input:valid {             background: red;             color: white;          }                     Heading             The style (red color background) appears if you type a relevant/ valid email address.    

Read More

Set all the top border properties in one declaration using CSS

varun
varun
Updated on 11-Mar-2026 313 Views

Use the border-top property in CSS to set all the top border properties in a single declaration.ExampleYou can try to run the following code to implement the border-top property −                    p {             border-style: solid;             border-top: thick dashed #FFFF00;          }                     This is demo text    

Read More

Add a blur effect to the shadow with CSS

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 1K+ Views

To add a blur effect to the shadow, use the box-shadow property.You can try to run the following code to add blur effectExample                    h2 {             box-shadow: 10px 10px 7px green;             height: 50px;             background-color: yellow;          }                     Heading Two       Above heading has shadow.    

Read More

Selects all elements with CSS

Chandu yadav
Chandu yadav
Updated on 11-Mar-2026 299 Views

To select all elements, use the * CSS Selector. You can try to run the following code to select all the elements,Example                    *{             color: blue;             background-color: orange;          }                     Demo Website       Learning       Tutorials on web dev, programming, database, networking, etc.       Every tutorials has lessons with illustrations and figures.    

Read More

Create white text with black shadow using CSS

Smita Kapse
Smita Kapse
Updated on 11-Mar-2026 1K+ Views

Use the text-shadow property to create white text with black shadow.You can try to run the following code to implement the text-shadow property:Example                    h1 {             color: white;             text-shadow: 3px 3px 3px #000000;          }                     Heading One       Above heading has a text shadow effect.    

Read More

Create red neon glow shadow using CSS

George John
George John
Updated on 11-Mar-2026 569 Views

To create red neon glow shadow, use the text-shadow property. You can try to run the following code to achieve thisExample                    h1 {             text-shadow: 0 0 4px #FF0000;          }                     Heading One       Above heading has a read neon glow shadow effect.    

Read More

Usage of attr() CSS function

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 11-Mar-2026 131 Views

The attr() CSS function returns the value of an attribute of the selected element using CSSYou can try to run the following code to implement the attr() function in CSSExample                    a:before {content: " (" attr(href) ")";}                     Information Resource       Resource: Welcome to Qries    

Read More

Return the value of an attribute of the selected element using CSS

Arjun Thakur
Arjun Thakur
Updated on 11-Mar-2026 316 Views

The attr() CSS function returns the value of an attribute of the selected element using CSSExampleYou can try to run the following code to implement the attr() function in CSS                    a:before {content: " (" attr(href) ")";}                     Information Resource                Resource:Welcome to Qries          

Read More

Usage of radial-gradient() CSS function

George John
George John
Updated on 11-Mar-2026 112 Views

Set a radial gradient as the background image, with radial-gradient() CSS function. You can try to run the following code to implement linear-gradient() function in CSSExample                    #demo {             height: 200px;             background: radial-gradient(green, orange, maroon);          }                     Setting background as radial gradient.          

Read More
Showing 111–120 of 1,299 articles
« Prev 1 10 11 12 13 14 130 Next »
Advertisements