Front End Technology Articles

Page 460 of 652

What is Graceful Degradation in CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 265 Views

Graceful degradation in CSS is a design philosophy that ensures websites remain functional and visually acceptable even when advanced features aren't supported by older browsers. Instead of breaking completely, the website "gracefully" falls back to simpler alternatives while maintaining core functionality. Syntax /* Modern feature */ selector { property: modern-value; property: fallback-value; /* Fallback for older browsers */ } Different Techniques for Graceful Degradation Progressive Enhancement This technique involves building from a solid foundation and adding enhancements layer by layer. Start with basic HTML, add ...

Read More

What is font-family -apple-system?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 3K+ Views

The -apple-system value of the CSS font-family property allows developers to use the same font that the Apple operating system uses. This ensures that your web content appears with fonts that match the user's device preferences on Apple devices like Mac, iPhone, and iPad. Syntax font-family: -apple-system; The font-family property accepts multiple font names as fallback values. If the browser doesn't support the first font, it tries the next one in the list. font-family: -apple-system, fallback-font1, fallback-font2; Example 1: Basic Usage The following example demonstrates how to apply the -apple-system ...

Read More

What is Float Containment in CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 260 Views

Float containment is a CSS technique used to control the layout of web page elements when using the float property. When an element is floated, it is removed from the normal document flow, which can cause layout issues where parent containers don't expand to contain their floated children properly. The Problem with Float When you set the float property for any HTML element, it gets removed from the original document flow but remains in the viewport. This causes the parent element to not recognize the floated child's dimensions, leading to layout collapse ? ...

Read More

What does the CSS rule “clear: both” do?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 629 Views

The CSS clear: both property is used to prevent elements from floating alongside other floated elements. When applied to an element, it forces that element to move below any preceding floated elements (both left and right floated), ensuring proper layout flow. Syntax selector { clear: both; } Possible Values ValueDescription leftClears left floated elements only rightClears right floated elements only bothClears both left and right floated elements noneDefault value; allows floating on both sides Example 1: Basic Clear Both Usage The following example shows how clear: ...

Read More

What is the use of CSS ruleset?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 722 Views

CSS stands for Cascading Style Sheets. It is used to style HTML elements and control the visual presentation of web pages. A CSS ruleset is the fundamental building block that defines how HTML elements should be styled. A CSS ruleset contains two main parts: a selector and a declaration block. The selector targets specific HTML elements, while the declaration block contains CSS properties and their values. Syntax selector { property: value; property: value; } In the above syntax, the selector identifies which HTML elements to style, ...

Read More

What is the Outline Effect to Text?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 507 Views

The outline effect for text creates the appearance of hollow text by showing only the border/stroke while making the interior transparent or matching the background color. This effect is commonly used for headings, logos, and decorative text elements. Syntax /* Method 1: Using webkit properties */ -webkit-text-stroke: width color; -webkit-text-fill-color: transparent; /* Method 2: Using text-shadow */ text-shadow: x y blur color, x y blur color; /* Method 3: Using SVG */ stroke: color; fill: transparent; stroke-width: width; Method 1: Using Webkit Text Properties The most straightforward approach uses -webkit-text-stroke and -webkit-text-fill-color ...

Read More

What is the difference between position:sticky and position:fixed in CSS?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 13K+ Views

In CSS, the position property controls how an element is positioned within the document. Two commonly confused values are fixed and sticky, which behave differently when scrolling. In this tutorial, we will learn the key differences between position: fixed and position: sticky. What is Position: Fixed in CSS? The fixed value positions an element relative to the viewport, removing it from the normal document flow. The element remains in the same position even when the page is scrolled. Syntax selector { position: fixed; top: value; ...

Read More

What is the difference between “screen” and “only screen” in media queries?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 4K+ Views

In CSS, media queries play an important role in creating responsive web designs. We can write media queries using the @media CSS rule with different conditions and keywords to target various devices like mobile devices, desktops, tablets, and printers. In this tutorial, we will learn the difference between 'screen' and 'only screen' in media queries. Syntax /* Using screen */ @media screen and (condition) { /* CSS code */ } /* Using only screen */ @media only screen and (condition) { /* CSS code */ } ...

Read More

What is styling text input caret ?

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 695 Views

In HTML text inputs, you can observe a marker showing at the editing position in the text, called the text input caret. It is also known as a text input cursor. This blinking line indicates where the next character will be inserted when typing. In this tutorial, we will learn to style the text input caret using CSS. Currently, we can only change the color of the text input caret, as changing the shape is not supported by modern browsers. Syntax selector { caret-color: value; } Possible Values ...

Read More

Wave inside Text using pure CSS

Shubham Vora
Shubham Vora
Updated on 15-Mar-2026 1K+ Views

CSS allows developers to create animated wave effects inside text elements. This technique creates visually appealing text animations that simulate water waves flowing through the letters, enhancing the visual impact of web content. Syntax @keyframes wavey { 0%, 100% { clip-path: polygon(/* initial wave coordinates */); } 50% { clip-path: polygon(/* peak wave coordinates */); } } Method 1: Using Clip-Path Animation This approach uses the clip-path property to create ...

Read More
Showing 4591–4600 of 6,519 articles
« Prev 1 458 459 460 461 462 652 Next »
Advertisements