CSS Articles

Page 123 of 130

What is a page box in CSS?

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

A page box in CSS is a rectangular area that defines the printable region of a page when creating print stylesheets. It consists of the page area (where content appears) and the margin area around it. Page boxes are defined using the @page rule and allow you to control page dimensions, orientation, margins, and printing marks. Syntax @page { size: width height; margin: value; marks: crop | cross | none; } Page Box Properties PropertyDescription sizeSets the page box dimensions and ...

Read More

Role of media attribute on the LINK element

Chandu yadav
Chandu yadav
Updated on 15-Mar-2026 181 Views

The media attribute on the LINK element specifies the target media or device type for which an external style sheet is intended. This allows you to apply different styles for different output devices like screens, printers, or mobile devices. Syntax Possible Values Media TypeDescription allSuitable for all devices (default) printIntended for printed material screenIntended for computer screens handheldIntended for handheld devices Example: Print-Specific Styles The following example links a CSS file specifically for print media − Media Attribute Example ...

Read More

How to specify the target media within the document language with CSS

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

CSS media attributes allow you to specify which devices or media types should apply specific styles. This helps create responsive designs that work across different platforms like screens, printers, and handheld devices. Syntax /* In CSS */ @media media-type { /* CSS rules */ } /* In HTML link tag */ Common Media Types Media TypeDescription screenComputer screens, tablets, phones printPrinters and print preview allAll media types (default) speechScreen readers and speech synthesizers Example: Using Media Attribute in HTML The following example shows how ...

Read More

How to specify the target media types of a set of CSS rules

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

The media attribute on CSS elements and @media rules allows you to specify which types of devices or media should apply specific CSS styles. This enables responsive design and device-specific styling. Syntax /* Using @media rule */ @media media-type { /* CSS rules */ } /* Using link element */ Common Media Types Media TypeDescription allSuitable for all devices (default) printIntended for printed documents screenIntended for computer screens speechIntended for speech synthesizers Example: Using Link Element with Media Attribute The following example shows ...

Read More

CSS media types

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

CSS media types allow you to specify how a document should be formatted for different output devices. They enable you to apply different styles for screen displays, printers, handheld devices, and other media types. Syntax @media media-type { /* CSS rules */ } /* Or in link element */ CSS Media Types Media TypeDescription allSuitable for all devices (default) printIntended for printed pages and print preview mode screenIntended primarily for computer screens speechIntended for speech synthesizers (replaces aural) Note: Most media types from CSS2 like ...

Read More

CSS pitch property

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

The CSS pitch property specifies the average pitch (frequency) of the speaking voice in speech synthesis. The average pitch varies based on the voice family − for example, a standard male voice averages around 120Hz, while a female voice averages around 210Hz. Syntax selector { pitch: value; } Possible Values ValueDescription frequencySpecifies the average pitch in hertz (Hz) x-lowExtra low pitch relative to voice family lowLow pitch relative to voice family mediumMedium pitch relative to voice family (default) highHigh pitch relative to voice family x-highExtra high pitch relative to ...

Read More

CSS cue-after Property

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

The CSS cue-after property specifies a sound to be played after speaking an element's content in speech synthesis. This property is part of CSS Speech Module and is used by screen readers and other assistive technologies to provide audio cues that help separate content elements. Syntax selector { cue-after: value; } Possible Values ValueDescription url()Specifies the URL of a sound file to be played noneNo sound will be played (default value) Example The following example demonstrates how to add audio cues after different elements − ...

Read More

Fade Out Animation Effect with CSS

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

The CSS fade out animation effect gradually transitions an element from fully visible (opacity: 1) to completely invisible (opacity: 0). This creates a smooth disappearing effect that's commonly used for image galleries, modal closures, and interactive elements. Syntax @keyframes fadeOut { 0% { opacity: 1; } 100% { opacity: 0; } } .element { animation-name: fadeOut; animation-duration: time; animation-fill-mode: both; } Example: Basic Fade Out Effect The following example demonstrates a fade out ...

Read More

Fade In Up Big Animation Effect with CSS

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

The CSS fadeInUpBig animation effect creates a dramatic entrance where an element slides up from far below the viewport while fading in. This animation is perfect for hero sections, large images, or content that needs to make a bold visual impact. Syntax @keyframes fadeInUpBig { 0% { opacity: 0; transform: translateY(2000px); } 100% { opacity: 1; ...

Read More

Fade In Animation Effect with CSS

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

CSS fade-in animation creates a smooth visual effect where elements gradually transition from transparent to opaque. This effect is commonly used to enhance user interaction by drawing attention to specific elements like buttons, images, or text when users hover over them. Syntax selector { opacity: initial-value; transition: opacity duration; } selector:hover { opacity: final-value; } Key Properties PropertyDescriptionValues opacityControls transparency level0 (transparent) to 1 (opaque) transitionDefines animation duration and timingTime in seconds (s) or milliseconds (ms) Example 1: ...

Read More
Showing 1221–1230 of 1,299 articles
« Prev 1 121 122 123 124 125 130 Next »
Advertisements