FIND YOUR NEXT FEW LINES

Results for “layout”

Small, practical examples. Search by task or narrow things down below.

129 snippets foundClear filters
CSSFlexbox alignment

Push one flex item away from its siblings

CSS: An auto inline-start margin consumes remaining main-axis space.

CSS✓ Tested
Linux CommandsArchive integrity & packaging

Remove a leading directory while extracting

Linux Commands: Use strip-components only after inspecting a trusted archive layout.

Linux Commands✓ Tested
CSSBox dimensions & overflow

Reserve space for a visible border

CSS: A border adds to the outer dimensions of a content-box element.

CSS✓ Tested
CSSInteraction & themes

Respect dark color preference

Apply different CSS colors when the browser requests a dark theme.

CSS✓ Tested
CSSInteraction & themes

Respect reduced motion

Disable a CSS animation when the user prefers reduced motion.

CSS✓ Tested
CSSGetting Started

Reuse a CSS custom property

CSS: Learn how to reuse a CSS custom property in a complete browser example.

CSS✓ Tested
CSSInteraction & themes

Reuse colors with custom properties

Define a CSS custom property and use it for text color.

CSS✓ Tested
CSSPositioning & stacking

Rotate a rectangular box around its center

CSS: A ninety-degree transform swaps the visible bounding-box width and height.

CSS✓ Tested
CSSVisual treatment & accessibility

Round a box’s corners

CSS: Border-radius changes the corner shape without changing its rectangular layout dimensions.

CSS✓ Tested
CSSGetting Started

Round a panel’s corners

CSS: Learn how to round a panel’s corners in a complete browser example.

CSS✓ Tested
CSSResponsive conditions & sizing

Scale a value from the root font size

CSS: Rem units follow the document root instead of accumulating through nested font sizes.

CSS✓ Tested
CSSResponsive design

Scale text within limits

Use CSS clamp to bound responsive font sizing.

CSS✓ Tested