CSS property 순서

유호진·2022년 1월 12일
0

하나의 요소에 여러가지 속성을 부여하는 경우 중요도, 관련도에 따라서 나름의 convention을 지켜서 작성

  1. Layout Properties (position, float, clear, display)

  2. Box Model Properties (width, height, margin, padding)

  3. Visual Properties (color, background, border, box-shadow)

  4. Typography Properties (font-size, font-family, text-align, text-transform)

  5. Misc Properties (cursor, overflow, z-index)

0개의 댓글

관련 채용 정보