Category: CSS

콘텐츠, 안쪽 여백, 테두리, 바깥 여백을 네 겹의 직사각형으로 표현한 일러스트

CSS / Reference / box-sizing: Content and Border Boxes, Including Small-Size Limits

Calculate content-box and border-box sizes, including margins and the minimum content-size limit. Apply resets deliberately and check external components.

얇은 테두리, 둥근 모서리, 그림자가 있는 카드 세 개를 비교한 일러스트

CSS / Reference / box-shadow: Offsets, Blur, Spread, and Inset Shadows

Build box shadows from offsets, blur, and spread, then inspect clipping and layering. Distinguish box geometry from glyph or transparent-image shadows.

얇은 테두리, 둥근 모서리, 그림자가 있는 카드 세 개를 비교한 일러스트

CSS / Reference / border-style: Border Patterns, Side Order, and Hidden Conflicts

Choose border patterns for each side and inspect shorthand resets. Compare none with hidden in collapsed tables and account for zero computed border widths.

내용량에 맞게 서로 다른 폭을 가진 표의 열을 보여주는 일러스트

CSS / Reference / border-spacing: Separate Cell Gaps and Collapsed Borders

Set horizontal and vertical gaps in separate-border tables. Distinguish cell padding, zero spacing, collapsed borders, and browser default styles.

컨테이너를 넘는 콘텐츠와 스크롤 안에 담긴 콘텐츠를 대비한 일러스트

CSS / Reference / overflow: Visible Overflow, Scrolling, Hidden, and Clip

Choose clipping and scrolling behavior with appropriate size constraints. Compare hidden with clip and inspect axis interactions and flex minimum sizes.

컨테이너를 넘는 콘텐츠와 스크롤 안에 담긴 콘텐츠를 대비한 일러스트

CSS / Reference / white-space: Preserve Spaces, Line Breaks, and Wrapping

Choose whitespace behavior by preservation and wrapping needs. Compare traditional values and break-spaces, and handle long words with separate wrapping properties.

색상 면과 반복·확대된 배경 무늬를 비교한 추상적인 일러스트

CSS / Reference / background-position: Percentages, Centers, and Edge Offsets

Position backgrounds using centers, percentages, or edge offsets. Calculate percentages from the remaining space and account for oversized cover images and multiple layers.

색상 면과 반복·확대된 배경 무늬를 비교한 추상적인 일러스트

CSS / Reference / background-origin: Positioning References Versus Painting Boundaries

Choose a background image’s positioning box and distinguish it from background-clip. Compare how padding, borders, percentage sizes, and fixed attachment affect the reference.

색상 면과 반복·확대된 배경 무늬를 비교한 추상적인 일러스트

CSS / Reference / background-image: Images, Gradients, Relative Paths, and Layers

Paint gradients or image layers, resolve paths from the correct stylesheet location, and keep meaningful pictures in accessible HTML rather than background decoration.

색상 면과 반복·확대된 배경 무늬를 비교한 추상적인 일러스트

CSS / Reference / background-color: Background Alpha, Inheritance, and Contrast

Set a background or a partly transparent color without fading the text. Distinguish transparency from inheritance and provide readable image fallbacks.