CSS 캡션 측 속성
예시
테이블 캡션의 위치 지정:
#example1 {
caption-side: bottom;
}
#example2 {
caption-side: top;
}
정의 및 사용
caption-side
속성은 테이블 캡션의 위치를 지정합니다 .
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
caption-side | 1.0 | 8.0 | 1.0 | 1.0 | 4.0 |
CSS 구문
caption-side: top|bottom|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
top | Puts the caption above the table. This is default | |
bottom | Puts the caption below the table | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 테이블
HTML DOM 참조: captionSide 속성