CSS Articles

Page 80 of 130

Set the name to Grid Items with CSS

Sreemaha
Sreemaha
Updated on 15-Mar-2026 181 Views

To set names to grid items in CSS, use the grid-area property in combination with the grid-template-areas property. This allows you to assign meaningful names to grid items and position them within named grid areas. Syntax /* Define named areas in the grid container */ .container { display: grid; grid-template-areas: "area-name1 area-name2" "area-name3 area-name4"; } /* Assign grid items to named areas */ .item ...

Read More

Define colors using the Red-Green-Blue model (RGB) with CSS

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 251 Views

In website design, color is crucial. It affects the links that users click on, the way they read information, and how comfortable they are surfing your website. While incorporating color requires practice, adding it to your website is simple when you use the CSS color and background-color properties. These properties can be defined in a number of ways. A web page's text or background color can be altered using HTML color names, hex color codes, RGB color codes, or HSL color values. In this article we are going to learn about the RGB colors. Syntax selector ...

Read More

CSS grid-area Property

usharani
usharani
Updated on 15-Mar-2026 136 Views

The CSS grid-area property is a shorthand property that allows you to specify a grid item's placement within a grid container by setting its grid-row-start, grid-column-start, grid-row-end, and grid-column-end values in a single declaration. Syntax selector { grid-area: grid-row-start / grid-column-start / grid-row-end / grid-column-end; } Possible Values ValueDescription line numberGrid line numbers (1, 2, 3, etc.) span nSpan across n grid tracks autoAutomatic placement (default) grid-area-nameReference to a named grid area Example: Grid Area with Line Numbers The following example demonstrates how to use grid-area ...

Read More

Change column-rule-width property with CSS Animations

George John
George John
Updated on 15-Mar-2026 221 Views

The CSS column-rule-width property defines the width of the vertical rule between columns in a multi-column layout. You can animate this property to create dynamic visual effects that change the column separator thickness over time. Syntax selector { column-rule-width: value; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { from { column-rule-width: initial-value; } to { column-rule-width: final-value; } } Example: Animating Column Rule Width The following example demonstrates how to animate the column-rule-width property from 10px ...

Read More

Animate CSS column-rule property

mkotla
mkotla
Updated on 15-Mar-2026 287 Views

The CSS column-rule property defines the line that appears between columns in a multi-column layout. You can animate this property to create dynamic visual effects by changing the rule's width, style, and color during the animation. Syntax selector { column-rule: width style color; animation: animation-name duration timing-function iteration-count; } Example: Animating Column Rule The following example demonstrates how to animate the column-rule property, changing its width and color − .container { ...

Read More

Set the flex items horizontally with CSS

varma
varma
Updated on 15-Mar-2026 466 Views

Use the flex-direction property with row value to set the flex items horizontally. This is the default behavior for flexbox containers, but explicitly setting it ensures your layout behaves as expected. Syntax selector { display: flex; flex-direction: row; } Possible Values ValueDescription rowItems are placed horizontally from left to right (default) row-reverseItems are placed horizontally from right to left columnItems are placed vertically from top to bottom column-reverseItems are placed vertically from bottom to top Example You can try to run the ...

Read More

Set top-left corner border with CSS

varun
varun
Updated on 15-Mar-2026 288 Views

The CSS border-top-left-radius property is used to set a rounded border specifically for the top-left corner of an element. This property allows you to create asymmetric rounded corners where only the top-left corner has a different radius than other corners. Syntax selector { border-top-left-radius: value; } Possible Values ValueDescription lengthDefines the radius in px, em, rem, etc. %Defines the radius as a percentage of the element's dimensions initialSets the property to its default value inheritInherits the value from the parent element Example The following example demonstrates ...

Read More

Animate CSS column-gap property

radhakrishna
radhakrishna
Updated on 15-Mar-2026 615 Views

The CSS column-gap property is used to set the gap between columns in a multi-column layout. When combined with CSS animations, you can create smooth transitions that adjust the spacing between columns over time. Syntax selector { column-gap: value; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { percentage { column-gap: new-value; } } Example The following example demonstrates how to animate the column-gap property to create a dynamic ...

Read More

Wrap the flex items in reverse order with CSS

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

Use the flex-wrap property with wrap-reverse value to wrap flex items in reverse order. This means that when flex items exceed the container's width and need to wrap, they will wrap in the opposite direction compared to the normal wrap behavior. Syntax selector { flex-wrap: wrap-reverse; } Example The following example demonstrates how wrap-reverse wraps flex items in reverse order − .mycontainer { display: flex; ...

Read More

Perform Animation on CSS border-top-right-radius property

Samual Sam
Samual Sam
Updated on 15-Mar-2026 214 Views

The CSS border-top-right-radius property defines the radius of the top-right corner of an element's border. You can create smooth animations on this property to create engaging visual effects. Syntax selector { border-top-right-radius: value; animation: animation-name duration timing-function; } @keyframes animation-name { from { border-top-right-radius: initial-value; } to { border-top-right-radius: final-value; } } Example: Animating Border Top Right Radius The following example demonstrates how to animate the border-top-right-radius property from 0 to 80px − ...

Read More
Showing 791–800 of 1,299 articles
« Prev 1 78 79 80 81 82 130 Next »
Advertisements