출처 : http://blog.naver.com/demege1878?Redirect=Log&logNo=100208607827

HTML 마크업

 

<body>

<div class="wrap">
     <div class="head">head</div>
     <div class="container">
           <div class="side">side</div>
           <div class="cont">cont<br/>cont<br/>cont<br/>cont<br/>cont</div>
     </div>
     <div class="footer">footer</div>
</div>
</body>

 

CSS

html, body {width:100%; height:100%;}

 

화면내 DIV 박스들을 정확하게 %값으로 조정하려면 html과 body태그에 width:100%와 height:100%를 주어야 한다.


.wrap {width:100%; height:100%;}

 

wrap으로 내용을 둘러쌈으로서 안에 있는 내용들은 wrap을 기준으로 %의 길이가 조정된다.


.head {position:relative; z-index:2; height:30px; background-color: red;}

 

head에 z-index를 주는 이유는 아래 container박스가 100%이기때문에 head박스가 그 밑으로 가라 앉기 때문이다. (z-index를

  주기 위해서는 position값을 주어야 한다.

 

  tip. HTML 내 div 박스는 위에서부터 순서대로 쌓인다. 예를 들어  head, container, footer의 경우 head 부터 순서대로 div 박스가

  쌓인다고 생각하면 된다 z-index로 생각해보면 head->z-indx:1 /  container->z-indx:2 / footer->z-indx:3


.container {min-height:100%; margin:-30px 0 -50px 0; background-color:green;}

 

container를 margin 값을 주는 이유?

  container의 높이가  100%이기 때문에 head:30px footer:50px의 높이값을 margin ( -30px  / - 50px ) 값으로 주지 않는다면

  100%+30px+50px의 높이가 되기때문에 100%를 넘어가게 된다. 따라서 head footer의 높이만큼 빼주어야 한다.

height값이 아닌 min-height값을 주는 이유?

​  최솟값으로 해줘야 나중에 container안에 많은 div박스가 생겼을때 스크롤이 생기지 않도록 하기 위해서

   
.footer { height:50px; background-color:yellow;}


.side {position:absolute; top:30px; z-index:1; height:200px; width:200px; background-color:pink;}

 

position:absolute값을 주는이유?

   side를 좌측에 배치하기 위해서.


.cont {position:relative; padding:30px 0 0 200px; background-color: gray;}

 

-  relative를 주는이유?

   side 값에 걸린 absolute값을 초기화 시켜 주기위해서 주는값.


'css' 카테고리의 다른 글

자간, 줄간격 조정  (0) 2014.03.30
따라다니는 퀵메뉴 참고  (0) 2013.02.25
IE7 레이어 버그  (0) 2013.01.24
clear:both  (0) 2012.05.09
word-break  (0) 2012.05.09

word-spacing:5pt;    //단어간 간격 조절

letter-spacing:7pt;    //자간 조절

line-height:130%;     //줄간격 조절

 

(%,px,pt 등등 사용가능)

'css' 카테고리의 다른 글

CSS height 100% 잡는법  (0) 2014.05.20
따라다니는 퀵메뉴 참고  (0) 2013.02.25
IE7 레이어 버그  (0) 2013.01.24
clear:both  (0) 2012.05.09
word-break  (0) 2012.05.09

<div class="aside_quick">
  <strong class="ir_pm">Quick Menu</strong>
  <ul class="list_quickmenu ir_pm">
   <li><a href="#Event01" class="link_quick link_event01">EVENT 01</a></li>
   <li><a href="#Event02" class="link_quick link_event02">EVENT 02</a></li>
   <li><a href="#Event03" class="link_quick link_event03">EVENT 03</a></li>
  </ul>
 </div>

 

.aside_quick {position:fixed;top:450px;left:50%;width:110px;height:132px;margin-left:490px;background:url(http://i1.daumcdn.net/img-contents/event/promotion/130225_rfonline/img_quick_v1.png)  0 0 no-repeat}
.list_quickmenu {padding:48px 15px 0 15px}
.list_quickmenu li {margin-bottom:3px;}
.list_quickmenu .link_quick {display:block;height:22px;width:80px}
.link_quick:hover {background:url(http://i1.daumcdn.net/img-contents/event/promotion/130225_rfonline/img_quick_v1.png) 0 0 no-repeat}
.link_event01:hover {background-position:-5px -151px}
.link_event02:hover {background-position:-5px -176px}
.link_event03:hover {background-position:-5px -201px}

'css' 카테고리의 다른 글

CSS height 100% 잡는법  (0) 2014.05.20
자간, 줄간격 조정  (0) 2014.03.30
IE7 레이어 버그  (0) 2013.01.24
clear:both  (0) 2012.05.09
word-break  (0) 2012.05.09

레이어를 겹쳐서 깔 경우에

아래 깔린 레이어에 position 속성이 들어가있을땐 레이어 위를 뚫고 올라오는 버그.


해결책은, 

레이어가 열리고 닫힐때 position 속성을 재지정해준다.


아래 예시에서는 position:static 으로 했지만

가능하면 position 값을 없애고

z-index:-1 등으로 조절해도 OK.



[ex]

$(".mn1").mouseover(function (e) {
 
 $(".smn01").show();
 $(".prod_clr").css("position","static");
});


$(".sub").mouseleave(function () {
$(".sub").hide();
$(".prod_clr").css("position","relative")
return false;
});

'css' 카테고리의 다른 글

자간, 줄간격 조정  (0) 2014.03.30
따라다니는 퀵메뉴 참고  (0) 2013.02.25
clear:both  (0) 2012.05.09
word-break  (0) 2012.05.09
hide (접근성 해치지 않는)  (0) 2012.04.19

div#container { *zoom:1; }

div#container:after {content:" "; display:block; clear:both;}

'css' 카테고리의 다른 글

따라다니는 퀵메뉴 참고  (0) 2013.02.25
IE7 레이어 버그  (0) 2013.01.24
word-break  (0) 2012.05.09
hide (접근성 해치지 않는)  (0) 2012.04.19
IE6 png 투명처리  (0) 2012.02.17

word-break:break-all :특수문자를 제외하고 강제 줄바꿈


word-wrap:break-word :특수문자를 포함하고 강제 줄바꿈


word-break:nowrap :width를 지정하였지만 개행이 되지 않기를 원할때.


word-break:keep-all :텍스트가 한글일 경우 띄워쓰기 기준으로 개행.


'css' 카테고리의 다른 글

IE7 레이어 버그  (0) 2013.01.24
clear:both  (0) 2012.05.09
hide (접근성 해치지 않는)  (0) 2012.04.19
IE6 png 투명처리  (0) 2012.02.17
IE6 png이미지맵  (0) 2012.02.17

.hide {

width:0;

height:0;

margin:0;

padding:0;

font-size:0;

line-height:0;

overflow:hidden;

visibility:hidden;

}


ex]

<h1 class="hide">제목</h1>

<span class="hide">배경처리된 이벤트 내용 텍스트.. 주절주절 어쩌구.. 접근성 위해 써준 텍스트</span>


'css' 카테고리의 다른 글

clear:both  (0) 2012.05.09
word-break  (0) 2012.05.09
IE6 png 투명처리  (0) 2012.02.17
IE6 png이미지맵  (0) 2012.02.17
png 핵  (0) 2012.02.17
<html>

<head>
<meta http-equiv="Content-type" content="text/html; charset=utf-8" />
<title> IE6 PNG 투명처리 </title>
<style type="text/css">
body  {
background-color : #d2d2d2;
}

img  {
behavior : url(iepngfix.htc);
}


*.sample  {

behavior : url(iepngfix.htc);
background : url(sample.png);
width : 128px;
height : 128px;
text-align : center;
}
</style>
</head>

<body>
<h3>1. PNG 이미지 투명처리</h3>
<img src="sample.png" />

<h3>2. 배경으로 사용</h3>
<table border="1">
<tr>
<td class="sample">sample</td>
</tr>
</table>
</body>

</html>

 

'css' 카테고리의 다른 글

word-break  (0) 2012.05.09
hide (접근성 해치지 않는)  (0) 2012.04.19
IE6 png이미지맵  (0) 2012.02.17
png 핵  (0) 2012.02.17
IE6 select 버그 - iframe  (0) 2012.02.16
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=euc-kr" />
<title> ie6 png이미지 이미지 맵 걸기 </title>
<style type="text/css">
<!--
img{border:0; vertical-align:top;}
* html .png24{tmp:expression(setPng24(this)); position:relative;}
.aa{position:relative; background:#ddd;}
* html .aa .ie6_mapfix{position:absolute; top:0; left:0;}
-->
</style>

<script type="text/javascript">
function setPng24(obj) {
    obj.width=obj.height=1;
    obj.className=obj.className.replace(/\bpng24\b/i,'');
    obj.style.filter = "progid:DXImageTransform.Microsoft.AlphaImageLoader(src='"+ obj.src +"',sizingMethod='image');"
    obj.src='';
    return '';
}
</script>

</head>

<body>
<div class="aa">
<img src="test.png" width="790" height="80" alt="" usemap="#map" class="png24" />
<!--[if lt IE 7]>
<img src="test.gif" width="790" height="80" alt="" usemap="#map" class="ie6_mapfix" />
<![endif]-->
<map name="map" id="map">
<area shape="rect" coords="13,8,136,24" href="#" onclick="alert('이미지 맵으로 링크 걸린곳');" alt="" />
</map>
</div>
</body>
</html>

'css' 카테고리의 다른 글

hide (접근성 해치지 않는)  (0) 2012.04.19
IE6 png 투명처리  (0) 2012.02.17
png 핵  (0) 2012.02.17
IE6 select 버그 - iframe  (0) 2012.02.16
팝업시 배경에 검은레이어  (0) 2012.02.16

사용법

<!--[if IE 6]>
<script type="text/javascript" src="DD_belatedPNG_0.0.8a-min.js"></script>
<script type="text/javascript">
DD_belatedPNG.fix('.png');
</script>
<![endif]-->

<img id="png4" class="png" src="../images/menu4.png" alt="커뮤니티" /> 

'css' 카테고리의 다른 글

IE6 png 투명처리  (0) 2012.02.17
IE6 png이미지맵  (0) 2012.02.17
IE6 select 버그 - iframe  (0) 2012.02.16
팝업시 배경에 검은레이어  (0) 2012.02.16
웹폰트  (0) 2012.02.16
IE6 에서 select박스가 레이어 최상단에 위치하는 버그.

z-index 순서의 가장 최상위가 iframe과 select 이므로 이를 이용하여
빈 iframe을 select위에 살포시 위치시켜서 해결 완료~

<style type="text/css">
iframe { width:90px; height:100px; position:absolute; left:120px; top:70px; border:1px solid red; 
filter: alpha(opacity=0); /*익스에서 생기는 테두리를 없애기 
z-index:-99; */

}
select { margin:200px 0 0 500px; z-index:1; }
</style>

<select >
<option>Basic</option>
<option>Basic2</option>
<option>Basic3</option>
</select>
<p class="c_big_img"><img src="../images/card_big_img.png" alt="" class="png" style="cursor:pointer" />
<iframe title="빈 프레임"></iframe>
</p>

<div id="big">
<p class="c_img"><img src="../images/view_img.jpg" alt="" /></p>
        <!-- 클릭시 큰 이미지가 보일때 --> 
<p><a href="#" class="c_img_view"><img src="../images/zoom.jpg" alt="" /></a></p>
</div> 
 

'css' 카테고리의 다른 글

IE6 png이미지맵  (0) 2012.02.17
png 핵  (0) 2012.02.17
팝업시 배경에 검은레이어  (0) 2012.02.16
웹폰트  (0) 2012.02.16
form 관련  (0) 2012.02.16
<style>
#bg { display:none; width:100%; height:100%;
         position:fixed; top:0; left:0;
         _position:absolute; /* hack for internet explorer 6*/
 background:#000; opacity:.5; filter:alpha(opacity=50); }
.pop { display:none; width:558px; height:305px; border:1px solid #959495; background:#fff;
   /*팝업 위치 조절*/
          position:absolute; left:32%; top:20%; z-index:99; } 
</style>

<body>
<div id="wrap">
   .....
   .....
     <div class="pop">
        ......
     </div>   
</div>

<div id="bg"></div>
</body> 


나머지 jquery로 액션주기.

'css' 카테고리의 다른 글

png 핵  (0) 2012.02.17
IE6 select 버그 - iframe  (0) 2012.02.16
웹폰트  (0) 2012.02.16
form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
웹폰트 적용하기

@font-face { font-family:"나눔고딕"; font-style:normal; font-weight:normal; src:url('NanumGothic.eot')}

url위치에 폰트파일 넣고
텍스트 반영 원하는 부분에서
font-family:"나눔고딕";

참조) http://naebon.blog.me/150095413611 

'css' 카테고리의 다른 글

IE6 select 버그 - iframe  (0) 2012.02.16
팝업시 배경에 검은레이어  (0) 2012.02.16
form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
CSS reset  (0) 2012.02.16
폼 클릭되면 폼배경 바꿈
input:focus { background-color:#ffc; }

텍스트박스만 css
#dv input[type="text"] {
   color : #333; padding : 3px; background:url(../img/input_bg.gif) repeat-x; border : 1px solid #a9bbd6;
}

IE만 먹을테니 안쓰지만 혹시나.. 
textarea {
scrollbar-face-color:#ffffff;
scrollbar-shadow-color: #ffffff;
scrollbar-highlight-color: #ffffff;
scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: #ffffff;
scrollbar-track-color: #ffffff;
scrollbar-arrow-color: #ffffff
}
스크롤 없앨때: 비표준일텐데 이것도 혹시나..
textarea { overflow-x:hidden; overflow-y:hidden; } 
 

 
또...
뭐더라.
기억나면 추가해야지 ㅋㅋ 

'css' 카테고리의 다른 글

팝업시 배경에 검은레이어  (0) 2012.02.16
웹폰트  (0) 2012.02.16
CSS hack  (0) 2012.02.16
CSS reset  (0) 2012.02.16
이용약관  (0) 2012.02.16
정리잘된 곳)
http://www.nmindplus.com/2006/06/28/css-hack/ 
http://kaludin.egloos.com/967831  : 아래내용 담아왔어요. 꾸벅 (--)(__)



Netscape 4 배제하기
<link rel="stylesheet" type="text/css" href="/css/style.css" media="all" />
Netscape 는 media 속성이 screen 이 아닌 경우 외부 스타일시트를 읽지 못하는 버그가 존재함.

Win IE 3~4, Mac IE 4~4.5, Netscape 4 배제하기
@import url("/css/style.css")
Win IE 4, Mac IE 4 는 인용부호가 "가 아니면 읽지 못하는 버그 존재. IE 3과 Netscape 4는 @import 지원하지 않음.

Mac IE 5 배제하기
H1 { /* \*/ color:red; /* */ }
Holly 핵이라 하며, 주석 안의 내용이 적용되지 않음.

Win IE 4~5 배제하기
H1/**/ { color:red; }
셀렉터 뒤에 /**/ 삽입.

Win IE 4~5, Mac IE 4.5~5 배제하기
H1 { color/* */:red; }
속성과 속성값을 구분하는 콜론(:) 앞에 /* */ 삽입.

Win IE 4~6, Mac IE 4, Netscape 4 배제하기
html>body H1 { color:red; }
셀렉터 앞에 html>body 삽입.

Win IE 6 제외시키기
H1 { color /**/:red; }
속성과 속성값을 구분하는 콜론(:) 앞에 스페이스와 /**/ 삽입.

언더스코어 핵 (_)
H1 { _color:red; }
Win IE 4~6 에 적용.

닷핵 (.)
H1 { .color:red; }
속성 앞에 . 삽입. Win IE 6~7 에만 적용. 타 브라우저는 정확히 확인하지 못했습니다.
이 핵에 대해선 계속 확인중인데 블로그스피어나 여타 서적에는 전혀 언급이 없는 이상한 핵(?)입니다.

해시 핵(#)
H1 { #color:red; }
속성 앞에 # 삽입. Win IE 4~6, Mac IE 5, Opera 7, Mozilla계열, Firefox 에 적용.

스타 핵
*HTML H1 { color:red; }
셀렉터 앞에 *html 삽입. Win IE 4~6, Mac IE 4~5 에 적용.

스타7 핵
HTML*H1 { color:red; }
셀렉터 앞에 html* 삽입(공백없이). Win IE 5.5~6, Mac IE 5, Safari 에 적용.

xmlns 속성 핵
HTML[xmlns] H1 { color:red; }
셀렉터 앞에 속성 선택자를 삽입. Mozilla, Firefox, Opera, Safari 등 속성 선택자를 지원하는 브라우저에 적용.

:root 가상클래스 핵
:root H1 { color:red; }
셀렉터 앞에 :root 가상클래스 삽입. Mozilla, Firefox, Mac IE 5, Safari 등 가상클래스를 지원하는 브라우저에 적용.

Tantek 박스모델 핵
H1 {
    width:500px;
    voice-family: ""}""; 
    voice-family:inherit;
    width:400px;
}
Tantek Celik 이 고안한 유명한 박스모델 핵. Win IE 4~5, Mac IE 4, Netscape 4 에서는 voice-family 속성 이전의 스타일 적용. 그외의 브라우저는 뒤의 속성 적용.

단순 박스모델 핵
H1 {
    width:500px;
    w\idth:400px; //Win IE 6, Mac IE 5, Mozilla, Opera, Safari
    \width:450px; // only Win IE 5
}

속성의 첫번째, 두번째 글자 사이에 \를 삽입하면 Win IE 6, Mac IE 5, Mozilla, Opera, Safari 에 적용.
추가로 속성의 앞에 \를 삽입하면 Win IE 5 에만 적용.

IE 7, Opera 적용하기
*+html body H1 { color:red; }
셀렉터 앞에 *+html body 삽입. IE 7, Opera 8 이후 버전 적용. Opera를 배제한 IE7 전용으로 하고 싶을 때는 *+html>/**/body 로 Opera 전용 속성 기술.

IE 7 적용하기
*:first-child+html H1 { color:red; }
셀렉터 앞에 *:first-child+html 삽입. IE 7에만 적용되고, 이외의 브라우저는 앞에서 기술한 셀렉터의 속성 적용.

Win IE 5 패스필터
@media tty {
i{content:"";/*" "*/}}; @import '/css/style.css'; {;}/*";}
}/* */


Win IE 5.5 패스필터
@media tty {
i{content:"";/*" "*/}}@m; @import '/css/style.css';/*";}
}/* */


Win IE 6 패스필터(?)
<!--[if IE 6]><link rel="stylesheet" type="text/css" href="/css/style.css" media="all" /><![endif]-->

Win IE 7 패스필터(?)
<!--[if gte IE 7]><link rel="stylesheet" type="text/css" href="/css/style.css" media="all" /><![endif]-->

모던브라우저 패스필터 (Win IE 5.5 이하, Mac IE 5, Opera 8 이하, Netscape 4 이하 제외)
@import "null?"{";
@import "/css/style.css";
@import "null?"}";
 
 
 

'css' 카테고리의 다른 글

웹폰트  (0) 2012.02.16
form 관련  (0) 2012.02.16
CSS reset  (0) 2012.02.16
이용약관  (0) 2012.02.16
배경 고정되고 내용만 스크롤  (0) 2012.02.16
@charset "utf-8";

/* bug for IE6,7 */
br { letter-spacing:0; }

/* css 초기화 */
body,div,dl,dt,dd,ul,ol,li,h1,h2,h3,h4,h5,h6,pre,form,fieldset,input,textarea,p,blockquote,th,td { 
 margin:0;
 padding:0;
}

body {  font:normal 12px/1.3 dotum, sans-serif;  color:#808080; }

table {  border-collapse:collapse;  border-spacing:0; }

fieldset,img {  border:0; }

address,caption,cite,code,dfn,em,th,var { font-style:normal;  font-weight:normal; }

ol,ul { list-style:none; }

caption,th,td {  text-align:left; }

h1,h2,h3,h4,h5,h6 {  font-size:100%;  font-weight:normal; }

q:before,q:after { content:''; }

abbr,acronym { border:0; }
 
/* a-style */
a {  /*color:#333;*/  text-decoration:none; }

a:hover, a:active { /* color:#bfb477;*/  text-decoration:none; }
 
/* hidden */
.hidden {
 position:absolute;
 overflow:hidden; 
 width:0;
 height:0;
 font-size:0;
 line-height:0;
 visibility:hidden;
 text-indent:-9999px; 
}

.clear { clear:both; height:0; overflow:hidden; border:0; }

'css' 카테고리의 다른 글

form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
이용약관  (0) 2012.02.16
배경 고정되고 내용만 스크롤  (0) 2012.02.16
말줄임표/줄바꿈  (0) 2012.02.16
<style>
.ca_yg { height:252px; padding:27px; border:1px solid #e2e2e2; }
.yg_txt { width:700px; height:252px; padding-right:10px; overflow:auto; overflow-x:hidden; text-align:left; }
</style>

<div class="ca_yg">
    <div class="yg_txt">

 제1조 (목적)<br />
(2) 이 약관에 동의하는 것은 정기적으로 웹사이트를 방문하여 약관의 변경사항을 확인하는 것에 동의함을 의미합니다. 변경된 약관에 대한 정보를 알지 못해 발생하는 이용자의 피해는 회사에서 책임지지 않습니다.  
.....

    </div>
</div> 

'css' 카테고리의 다른 글

form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
CSS reset  (0) 2012.02.16
배경 고정되고 내용만 스크롤  (0) 2012.02.16
말줄임표/줄바꿈  (0) 2012.02.16
<style type="text/css">
body { 
background-image: url(bg.gif); 
background-attachment: fixed;
background-repeat: no-repeat;
}
</style>
<body bgcolor="#ffffff" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<p style="width:300px;">
background-attachment 속성에 fixed값을 사용하여 배경이미지를 고정하면 배경위에 텍스트가 떠있는 느낌을 표현할 수 있습니다.<br><br>배경이미지는 고정된체 텍스트만 스크롤됩니다.<br><br>
background-attachment 속성의 값으로는 scroll과 fixed를 지정할 수 있습니다. scroll은 기본값으로 페이지가 스크롤되면 배경이미지도 함께 스크롤된다는 의미입니다.<br><br>
이 페이지와 같이 fixed로 지정하면 배경이미지는 고정된체 페이지의 내용만 스크롤이 됩니다.<br><br>
background-attachment 속성에 fixed값을 사용하여 배경이미지를 고정하면 배경위에 텍스트가 떠있는 느낌을 표현할 수 있습니다.<br><br>배경이미지는 고정된체 텍스트만 스크롤됩니다.<br><br>
background-attachment 속성의 값으로는 scroll과 fixed를 지정할 수 있습니다. scroll은 기본값으로 페이지가 스크롤되면 배경이미지도 함께 스크롤된다는 의미입니다.<br><br>
이 페이지와 같이 fixed로 지정하면 배경이미지는 고정된체 페이지의 내용만 스크롤이 됩니다.<br><br>
background-attachment 속성에 fixed값을 사용하여 배경이미지를 고정하면 배경위에 텍스트가 떠있는 느낌을 표현할 수 있습니다.<br><br>배경이미지는 고정된체 텍스트만 스크롤됩니다.<br><br>
background-attachment 속성의 값으로는 scroll과 fixed를 지정할 수 있습니다. scroll은 기본값으로 페이지가 스크롤되면 배경이미지도 함께 스크롤된다는 의미입니다.<br><br>
이 페이지와 같이 fixed로 지정하면 배경이미지는 고정된체 페이지의 내용만 스크롤이 됩니다.<br>
</p>
</body>

'css' 카테고리의 다른 글

form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
CSS reset  (0) 2012.02.16
이용약관  (0) 2012.02.16
말줄임표/줄바꿈  (0) 2012.02.16
말줄임표
width:000px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap 

줄바꿈
word-break:break-all :특수문자를 제외하고 강제 줄바꿈
word-wrap:break-word :특수문자를 포함하고 강제 줄바꿈
word-break:nowrap :width를 지정하였지만 개행이 되지 않기를 원할때.
word-break:keep-all :텍스트가 한글일 경우 띄워쓰기 기준으로 개행. 

ex)
table { table-layout:fixed; } 주고
해당 td에 word-wrap:break-word;  

tip1)
<table style="table-layout:fixed" width=500>
<col width=100><col width=400>
<tr>
  <td>111111</td>
  <td>222222</td>
</tr>
</table>

tip2)
table-layout:fixed면 세로길이도 고정되므로
본문내용 td에는 꼭!! height:auto;  

'css' 카테고리의 다른 글

form 관련  (0) 2012.02.16
CSS hack  (0) 2012.02.16
CSS reset  (0) 2012.02.16
이용약관  (0) 2012.02.16
배경 고정되고 내용만 스크롤  (0) 2012.02.16

+ Recent posts