FIND YOUR NEXT FEW LINES

Results for “layout”

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

129 snippets foundClear filters
CSSBox dimensions & overflow

Clip content that exceeds a fixed-height box

CSS: Overflow hidden clips the painted content while the full content remains in the DOM.

CSS✓ Tested
CSSGrid placement

Combine a fixed sidebar with a flexible content track

CSS: Minmax zero avoids an intrinsic minimum forcing the flexible track wider than its container.

CSS✓ Tested
CSSLayout

Constrain and center a container

Use max-width and auto margins for a centered CSS reading area.

CSS✓ Tested
CSSType & reading flow

Control tab width in preformatted content

CSS: Tab-size defines the interval of tab stops in a preformatted block.

CSS✓ Tested
CSSVisual treatment & accessibility

Control the size of a repeated background tile

CSS: Background-size sets the rendered dimensions of each repeated background image.

CSS✓ Tested
CSSLayout

Create equal grid columns

Divide a CSS grid into three equal columns with gaps.

CSS✓ Tested
CSSGetting Started

Create two equal grid columns

CSS: Learn how to create two equal grid columns in a complete browser example.

CSS✓ Tested
CSSGrid placement

Describe a page arrangement with named grid areas

CSS: Named areas make the relationship between a grid template and its sections explicit.

CSS✓ Tested
CSSInteraction selectors

Display a hint for a truly empty container

CSS: The empty selector requires no element or text children, including whitespace text nodes.

CSS✓ Tested
CSSType & reading flow

Display a label in uppercase without changing its text

CSS: Text-transform changes visual casing while preserving the DOM’s source text.

CSS✓ Tested
CSSGrid placement

Divide grid space in a chosen proportion

CSS: Fraction units divide the remaining track space proportionally.

CSS✓ Tested
CSSGetting Started

Draw a visible element border

CSS: Learn how to draw a visible element border in a complete browser example.

CSS✓ Tested