Notice
Recent Posts
Recent Comments
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- Jrun
- flash
- oralce
- CVS
- 블루수국그림
- 인테리어그림
- CSS
- 국민연금
- 갑근세
- 블로그 조회수 늘리기
- 소득세
- .NET
- Eclipse
- JavaScript
- Administrator
- HTML
- MySQL
- Adobe pdf reader
- PHP
- Jexcel
- samba
- MSSQL
- JSP
- 블로그 조회수
- 에덴미술
- 블로그 수익화
- Vista
- 즐겨찾기 추가
- IIS
- 블로그 방문자 늘리기
Archives
- Today
- Total
I LOVE EJ
word-wrap & word-break (줄 바꿈) 본문
선택자 {속성:값;}
/* 적용 : ie6,7,8, sf4 */
/* 예외 : op9, ff3 */
속성 : word-wrap
값 : normal(default) | break-word
/* ie 전용 */
속성 : word-break
값 : keep-all(default) | break-all
The
/* 적용 : ie6,7,8, sf4 */
/* 예외 : op9, ff3 */
속성 : word-wrap
값 : normal(default) | break-word
/* ie 전용 */
속성 : word-break
값 : keep-all(default) | break-all
The
word-wrap
property was invented by Microsoft and added to CSS3. It allows long words to be able to be broken and wrap onto the next line. It takes in two values; normal
or break-word
.
In the first paragraph below, normal
is used. This is the same as if the property wasn’t used, i.e. the long word breaks out of the box as there isn’t enough width for it to be fully contained in the box. In the second paragraph, break-word
is used and the long word is broken into two pieces, so that the second part wraps onto the next line.
This is currently supported in IE, Safari, and Firefox 3.1 (Alpha).
- <div style="width:200px; margin:15px 0; padding:5px; border:1px solid #000; word-wrap:normal; font:12px/1.5 dotum;">
- This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit
- </div>
- <div style="width:200px; margin:15px 0; padding:5px; border:1px solid #000; word-wrap:break-word; font:12px/1.5 dotum;">
- This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit
- </div>
This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit
This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit
'Web publishing > HTML & CSS' 카테고리의 다른 글
[css] word-wrap (0) | 2010.11.12 |
---|---|
테이블 크기 고정하기 (0) | 2010.11.12 |
IE6에서도 CSS Position: fixed 먹히게 및 하단고정 레이어 (0) | 2010.11.02 |
mailto 태그를 잘 활용하는 방법 (0) | 2010.07.02 |
링크 점선 없애기 (0) | 2010.06.29 |