CSS 열 규칙 스타일 속성
예시
열 사이의 규칙 스타일을 지정합니다.
div
{
column-rule-style: dotted;
}
아래에서 더 많은 "직접 사용해 보기" 예를 살펴보세요.
정의 및 사용
column-rule-style
속성은 열 사이의 규칙 스타일을 지정합니다 .
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
-webkit- 또는 -moz- 뒤에 오는 숫자는 접두사와 함께 작동한 첫 번째 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
column-rule-style | 50.0 4.0 -webkit- |
10.0 | 52.0 2.0 -moz- |
9.0 3.1 -webkit- |
37.0 15.0 -webkit 11.1 |
CSS 구문
column-rule-style: none|hidden|dotted|dashed|solid|double|groove|ridge|inset|outset|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
none | Default value. Defines no rule | |
hidden | Defines a hidden rule | |
dotted | Defines a dotted rule | |
dashed | Defines a dashed rule | |
solid | Defines a solid rule | |
double | Defines a double rule | |
groove | Specifies a 3D grooved rule. The effect depends on the width and color values | |
ridge | Specifies a 3D ridged rule. The effect depends on the width and color values | |
inset | Specifies a 3D inset rule. The effect depends on the width and color values | |
outset | Specifies a 3D outset rule. The effect depends on the width and color values | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |
더 많은 예
예시
<div> 요소의 텍스트를 세 개의 열로 나눕니다.
div
{
column-count: 3;
}
예시
열 사이에 40픽셀 간격을 지정합니다.
div
{
column-gap: 40px;
}
예시
열 사이의 규칙 너비, 스타일 및 색상을 지정합니다.
div
{
column-rule: 4px double #ff00ff;
}
관련 페이지
CSS 튜토리얼: CSS 다중 열
HTML DOM 참조: columnRuleStyle 속성