CSS 워드랩 속성
예시
긴 단어를 끊고 다음 줄로 줄 바꿈할 수 있습니다.
div {
word-wrap: break-word;
}
정의 및 사용
이 word-wrap
속성을 사용하면 긴 단어를 끊고 다음 줄로 줄 바꿈할 수 있습니다.
브라우저 지원
표의 숫자는 속성을 완전히 지원하는 첫 번째 브라우저 버전을 지정합니다.
Property | |||||
---|---|---|---|---|---|
word-wrap | 4.0 | 5.5 | 3.5 | 3.1 | 10.5 |
CSS 구문
word-wrap: normal|break-word|initial|inherit;
속성 값
Value | Description |
---|---|
normal | Break words only at allowed break points. This is default |
break-word | Allows unbreakable words to be broken |
initial | Sets this property to its default value. Read about initial |
inherit | Inherits this property from its parent element. Read about inherit |
관련 페이지
CSS 튜토리얼: CSS 텍스트 효과