Web Development Articles

Page 624 of 801

CSS quotes Property

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

The CSS quotes property is used to set quotation marks for the element or elements that use the quotes property with content. It defines which characters to use for opening and closing quotes. Syntax selector { quotes: open-quote close-quote; } Possible Values ValueDescription noneRemoves quotation marks autoUses browser default quotation marks string stringCustom opening and closing quote characters Example 1: Custom Quote Marks The following example sets single quotes for the element − #demo ...

Read More

CSS hanging-punctuation Property

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

The CSS hanging-punctuation property allows punctuation marks to be positioned outside the line box at the beginning or end of text lines. This creates better visual alignment by preventing punctuation from affecting text indentation. Syntax selector { hanging-punctuation: value; } Possible Values ValueDescription noneNo punctuation marks hang outside the line box (default) firstPunctuation at the start of the first line hangs outside lastPunctuation at the end of the last line hangs outside allow-endPunctuation at the end of lines may hang outside force-endPunctuation at the end of lines must hang ...

Read More

How to preserve the readability when font fallback occurs with CSS

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 174 Views

The CSS font-size-adjust property helps preserve text readability when font fallback occurs. When the preferred font is unavailable and the browser falls back to another font, this property maintains consistent visual sizing by adjusting the font size based on the aspect ratio. Syntax selector { font-size-adjust: value; } Possible Values ValueDescription noneDefault. No adjustment applied numberAspect ratio value (typically 0.4 to 0.7) Example: Font Size Adjustment The following example demonstrates how font-size-adjust maintains consistent visual sizing when fonts change − ...

Read More

Perform Animation on CSS border-bottom-color property

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

The CSS border-bottom-color property can be animated to create smooth color transitions for the bottom border of an element. This property is animatable, allowing you to create engaging visual effects. Syntax selector { border-bottom-color: color; animation: animation-name duration timing-function; } @keyframes animation-name { from { border-bottom-color: initial-color; } to { border-bottom-color: final-color; } } Example: Animating Border Bottom Color The following example demonstrates how to animate the border-bottom-color property from blue to red over a 2-second duration ...

Read More

Usage of radial-gradient() CSS function

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

The CSS radial-gradient() function creates a smooth transition between colors radiating from a center point. Unlike linear gradients that flow in a straight line, radial gradients expand outward in a circular or elliptical pattern. Syntax background: radial-gradient([shape] [size] [at position], color-stop1, color-stop2, ...); Possible Values ParameterDescription shapeOptional. circle or ellipse (default) sizeOptional. closest-side, farthest-side, closest-corner, farthest-corner positionOptional. Center position like center, top left, or 50% 30% color-stopTwo or more colors with optional stop positions Example: Basic Radial Gradient The following example creates a radial gradient background with three colors − ...

Read More

Animate CSS border-top property

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

The CSS border-top property can be animated to create dynamic visual effects. You can animate the border width, color, and style using CSS animations and transitions. Syntax selector { border-top: width style color; animation: animation-name duration timing-function iteration-count; } @keyframes animation-name { from { border-top: initial-value; } to { border-top: final-value; } } Example: Animating Border Top Width and Color The following example demonstrates how to animate the border-top property by changing its width and color − ...

Read More

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

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

CSS provides the RGBA color model to define colors using Red, Green, Blue values along with an Alpha channel for transparency. The rgba() function allows you to specify colors with precise opacity control, making it ideal for creating semi-transparent elements and layered designs. Syntax selector { color: rgba(red, green, blue, alpha); background-color: rgba(red, green, blue, alpha); } Possible Values ParameterRangeDescription red0-255Red color intensity green0-255Green color intensity blue0-255Blue color intensity alpha0-1Opacity level (0 = transparent, 1 = opaque) Example: RGBA Colors with Transparency ...

Read More

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

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

The attr() CSS function returns the value of an attribute of the selected element and is commonly used with the content property in pseudo-elements to display attribute values as text content. Syntax selector::before, selector::after { content: attr(attribute-name); } Example: Displaying Link URLs The following example uses the attr() function to display the URL of a link after the link text − a::after { content: " (" attr(href) ")"; ...

Read More

Usage of var() CSS function

karthikeya Boyini
karthikeya Boyini
Updated on 15-Mar-2026 121 Views

The var() function in CSS is used to insert the value of custom properties (CSS variables) into your stylesheet. It provides a way to reuse values throughout your CSS and create more maintainable code. Syntax var(--custom-property-name, fallback-value) Possible Values ParameterDescription --custom-property-nameThe name of the custom property (must start with two dashes) fallback-valueOptional value to use if the custom property is not defined Example: Basic Usage The following example demonstrates how to define custom properties and use them with the var() function − ...

Read More

Perform Animation on CSS font-size property

Samual Sam
Samual Sam
Updated on 15-Mar-2026 1K+ Views

The CSS font-size property can be animated to create text that grows or shrinks smoothly over time. This creates engaging visual effects for headings, hover states, or attention-grabbing elements. Syntax @keyframes animation-name { keyframe-selector { font-size: value; } } selector { animation: animation-name duration timing-function iteration-count; } Example: Basic Font Size Animation The following example demonstrates animating the font-size property from its default size to 30px − ...

Read More
Showing 6231–6240 of 8,010 articles
« Prev 1 622 623 624 625 626 801 Next »
Advertisements