CSS 텍스트 맞춤 속성
예시
text-align이 "justify"로 설정된 경우 양쪽 맞춤 방법을 "inter-word"로 설정합니다.
div
{
text-align: justify;
text-justify: inter-word;
}
정의 및 사용
속성 은 text-justify
text-align이 "justify"로 설정된 경우 텍스트의 정렬 방법을 지정합니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
text-justify | Yes* | 11.0 | 55.0 | 10.0.3 | Yes* |
*이 기능은 실험적 웹 플랫폼 기능 활성화 기본 설정 뒤에 있습니다 (활성화로 설정해야 함). Chrome에서 기본 설정을 변경하려면 Chrome 브라우저에 "chrome://flags"를 입력합니다. Opera에서 기본 설정을 변경하려면 Opera 브라우저에 "플래그"를 입력하십시오.
CSS 구문
text-justify: auto|inter-word|inter-character|none|initial|inherit;
속성 값
Value | Description | Play it |
---|---|---|
auto | The browser determines the justification algorithm | |
inter-word | Increases/Decreases the space between words | |
inter-character | Increases/Decreases the space between characters | |
none | Disables justification methods | |
initial | Sets this property to its default value. Read about initial | |
inherit | Inherits this property from its parent element. Read about inherit |