Skip to content
Astera Technology

CSS responsive conditions and text

Viewport and container conditions, direction mapping and readable overflow.

Astera Technology

Keep a responsive lesson in its reading order

Place instructions before results in both source and visual layout at narrow and wide widths.

Practical lesson
Astera Technology

Adapt a component to its container width

Use a local size container so a narrow component stays stacked inside a wide viewport.

Practical lesson
Astera Technology

Test the exact boundary of a responsive media query

Check 599px, 600px and 601px instead of relying only on a phone and desktop screenshot.

Practical lesson
Astera Technology

Bound fluid type between two endpoints

Measure clamp(20px,4vw,36px) at three viewport widths.

Practical lesson
Astera Technology

Mirror spacing through the inline direction

Map inline-start and inline-end padding onto physical left and right sides.

Practical lesson
Astera Technology

Wrap a long token without deleting characters

Keep an unbroken identifier readable inside 180px without ellipsis or clipping.

Practical lesson
Astera Technology

Keep a wide table in its own scroll region

Preserve a 600px data table while the surrounding document fits a phone-width frame.

Practical lesson