"Style Sheet"에 해당되는 글 - 1건
Post
CSS의 속성은 특별히 정해진 규칙이 있는 것은 아니지만, 일정한 규칙에 따라 작성하면 우선 CSS를 관리하기가 많이 편하답니다~
아래는 모질라에서 제안하는 CSS 속성 지정 순서입니다. (굵은 글자는 많이 쓰이는 속성들)
- display
- list-style
- position
- float
- clear
- width
- height
- margin
- padding
- border
- background
- color
- font
- text-decoration
- text-align
- vertical-align
- white-space
- other text
- content
다음은 위의 순서를 좀더 간략하게 비슷한 것끼리 묶어 정리해본 것입니다. 제가 사용하는 순서죠 ^^
- display
- list-style
- position
- float , clear
- width , height
- margin , padding
- border
- background
- color , font , text-decoration , text-align , vertical-align
- white-space , other text , content