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.

Flexbox 카드들이 간격을 두고 두 줄로 감기며 크기를 나누는 일러스트

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.