Category: CSS

CSS / Truncate text with single-line and multiline ellipses
Compare text-overflow and multiline clamping with a complete example. Learn width and wrapping requirements, Flexbox minimum sizing, height-based fallback and a way to read the full text.

CSS / list-style-image: image markers, sizing and fallback
Use list-style-image with inherited values, fallback markers and a complete embedded-SVG example. Compare font and image sizes, then troubleshoot paths, shorthand resets and list semantics.

CSS / Padding and margin: spacing, width calculations and collapsing margins
Compare padding and margin with a complete HTML example, shorthand directions and box-sizing calculations. Learn the conditions for auto centering and vertical margin collapse, plus common spacing mistakes.

CSS / Reference / aspect-ratio: Preferred Ratios, Natural Images, and Constraints
Use preferred aspect ratios with automatic sizing and inspect competing constraints. Distinguish a replaced image’s natural ratio from its CSS box and object-fit behavior.

CSS / Reference / accent-color: Native Control Accents and Accessible States
Request native-control accent colors without replacing their behavior. Compare selected and disabled states, accessible names, and browser-dependent contrast treatments.

CSS / Reference / border-width: Side Widths, Shorthand Order, and Box Size
Set border widths using valid lengths and shorthand ordering. Inspect none, box-sizing, and hover changes without treating keyword widths as fixed pixels.

CSS / Reference / align-content: Flex Lines, Grid Tracks, and Available Space
Distribute available space in flex, grid, and supported block layouts. Compare wrap with nowrap, fixed with auto tracks, and content-group alignment with item alignment.

CSS / Reference / tab-size: Preserved Tabs and Tab-Stop Positions
Set tab stops for real tab characters and inspect their positions. Distinguish editor-generated spaces, whitespace collapsing, and visual wrapping.

CSS / Reference / backface-visibility: Front and Back Faces Under 3D Rotation
Choose whether a 3D-transformed back face is painted. Compare front and reverse states and account for accessible interaction when building a multi-face interface.

CSS / Reference / text-align: Text, Inline Content, and Block Alignment
Align text by physical or logical sides and distinguish it from centering a block. Inspect justification, final lines, and direction-sensitive layouts.