word-wrap & word-break (줄 바꿈) > html

본문 바로가기
사이트 내 전체검색

html

word-wrap & word-break (줄 바꿈)

페이지 정보

작성자 서방님 댓글 0건 조회 543회 작성일 10-03-11 19:31

본문

선택자 {속성:값;}

/* 적용 : 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).

  1. <div style="width:200px; margin:15px 0; padding:5px; border:1px solid #000; word-wrap:normal; font:12px/1.5 dotum;">   
  2.  This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit   
  3. </div>   
  4. <div style="width:200px; margin:15px 0; padding:5px; border:1px solid #000; word-wrap:break-word; font:12px/1.5 dotum;">   
  5.  This paragraph has long words thisisaveryverylongwordthatisntreallyoneword and again a longwordwithnospacesinit   
  6. </div>  

<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

댓글목록

등록된 댓글이 없습니다.

Total 323건 13 페이지
html 목록
번호 제목 글쓴이 조회 날짜
143 서방님 483 08-05
142 서방님 455 08-05
141 서방님 453 08-05
140 서방님 425 12-27
139 서방님 704 08-25
138 서방님 445 03-22
137 서방님 445 03-18
136 서방님 531 03-16
열람중 서방님 544 03-11
134 서방님 428 08-20
133 서방님 482 03-20
132 서방님 675 03-10
131 서방님 402 03-04
130 서방님 487 02-13
129 서방님 427 02-13
게시물 검색

회원로그인

접속자집계

오늘
512
어제
1,035
최대
26,974
전체
699,398
Latest Crypto Fear & Greed Index

그누보드5
Copyright © 서방님.kr All rights reserved.