Web Development Articles

Page 626 of 801

Animate CSS border-top-left-radius property

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 118 Views

The CSS border-top-left-radius property can be animated to create smooth transitions or dynamic effects. This property controls the rounding of the top-left corner of an element. Syntax @keyframes animationName { from { border-top-left-radius: initial-value; } to { border-top-left-radius: final-value; } } selector { animation: animationName duration timing-function iteration-count; } Example: Animating border-top-left-radius on a Box The following ...

Read More

How to set a default column size in CSS Grid

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

The CSS grid-auto-columns property is used to set a default size for columns in a CSS Grid container. This property defines the size of implicitly created grid columns that are not explicitly defined with grid-template-columns. Syntax selector { grid-auto-columns: value; } Possible Values ValueDescription autoDefault value. Column size is determined by content lengthFixed size in px, em, rem, etc. %Percentage of the container width frFractional unit representing a fraction of available space min-contentSize based on the smallest content max-contentSize based on the largest content Example The ...

Read More

Display the flex lines in the center of the container with CSS

Lakshmi Srinivas
Lakshmi Srinivas
Updated on 15-Mar-2026 158 Views

The CSS align-content property is used to control how flex lines are distributed along the cross-axis in a flex container. When set to center, it positions all flex lines in the center of the container. Syntax selector { align-content: center; } Example The following example demonstrates how to center flex lines within a container − .mycontainer { display: flex; height: 300px; ...

Read More

CSS grid-row Property

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

The CSS grid-row property controls the size and position of grid items along the row axis. It is a shorthand property that combines grid-row-start and grid-row-end to define which grid lines a grid item should span across rows. Syntax selector { grid-row: start-line / end-line; } Possible Values ValueDescription autoDefault value, the item spans one row line-numberSpecifies which line to start/end at (e.g., 1, 2, 3) span nSpans across n number of rows start / endDefines both start and end positions Example: Spanning Multiple Rows The ...

Read More

Usage of CSS grid property

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

The CSS grid property is a shorthand property that allows you to set multiple grid-related properties in a single declaration. It can be used to define grid-template-rows, grid-template-columns, grid-template-areas, grid-auto-rows, grid-auto-columns, and grid-auto-flow properties all at once. Syntax selector { grid: / ; /* or */ grid: ; /* or */ grid: / ; } Example: Basic Grid Layout The following example creates a grid with one row of 100px height ...

Read More

Animate box-shadow CSS property

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 1K+ Views

The CSS box-shadow property can be animated to create dynamic shadow effects that enhance the visual appeal of elements. This animation smoothly transitions between different shadow states, creating engaging hover effects, floating animations, or attention-grabbing elements. Syntax selector { box-shadow: h-offset v-offset blur spread color; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { from { box-shadow: initial-shadow; } to { box-shadow: final-shadow; } } Example: Animated Box Shadow The following example demonstrates animating the box-shadow property ...

Read More

Perform Animation on CSS clip property

Arjun Thakur
Arjun Thakur
Updated on 15-Mar-2026 198 Views

The CSS clip property can be animated to create dynamic visual effects by changing the visible portion of an absolutely positioned element over time. This allows you to create revealing, masking, or cropping animations. Syntax selector { clip: rect(top, right, bottom, left); animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { percentage { clip: rect(top, right, bottom, left); } } Important Notes The clip property only works on absolutely ...

Read More

CSS Grid Lines

Yaswanth Varma
Yaswanth Varma
Updated on 15-Mar-2026 1K+ Views

CSS Grid Lines are the invisible horizontal and vertical lines that form the structure of a CSS grid container. These lines define where grid items can be positioned and create the foundation for precise layout control. Each grid line is numbered, starting from 1, and can be referenced to place items exactly where you want them. Syntax /* Column positioning */ grid-column-start: line-number; grid-column-end: line-number; /* Row positioning */ grid-row-start: line-number; grid-row-end: line-number; /* Shorthand */ grid-column: start / end; grid-row: start / end; Understanding Grid Lines Grid lines are automatically created ...

Read More

Role of CSS justify-content property center value

Rishi Rathor
Rishi Rathor
Updated on 15-Mar-2026 277 Views

The CSS justify-content property with the center value is used to align flex items to the center of the main axis in a flex container. This creates equal spacing on both sides of the flex items, centering them horizontally within their container. Syntax .container { display: flex; justify-content: center; } Example The following example demonstrates how to center flex items using justify-content: center − .mycontainer { ...

Read More

Usage of CSS grid-gap property

Ankith Reddy
Ankith Reddy
Updated on 15-Mar-2026 167 Views

The CSS grid-gap property is used to set the spacing between grid rows and columns in a CSS Grid layout. This property provides a convenient shorthand for defining both row and column gaps simultaneously. Syntax selector { grid-gap: row-gap column-gap; } /* Or using single value for both */ selector { grid-gap: gap-value; } Possible Values ValueDescription lengthDefines the gap size in px, em, rem, etc. percentageDefines the gap as a percentage of the container row-gap column-gapTwo values: first for rows, second for columns ...

Read More
Showing 6251–6260 of 8,010 articles
« Prev 1 624 625 626 627 628 801 Next »
Advertisements