CSS 단어 간격 속성
예시
<p> 요소에서 단어 사이의 간격이 30픽셀이어야 함을 지정합니다.
p
{
word-spacing: 30px;
}
정의 및 사용
속성 은 word-spacing
단어 사이의 공백을 늘리거나 줄입니다.
참고: 음수 값이 허용됩니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
word-spacing | 1.0 | 6.0 | 1.0 | 1.0 | 3.5 |
CSS 구문
word-spacing: normal|length|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
normal | Defines normal space between words (0.25em) . This is default | |
length | Defines an additional space between words (in px, pt, cm, em, etc). Negative values are allowed. Read about length units | |
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 참조: wordSpacing 속성