DIV를 가운데 정렬하기
CSS
body {text-align:center;}
#wrap {width:800px;margin:0 auto;text-align:left;}
#header {}
#content_left {float:left;}
#content_right {float:left;}
#footer {clear:both;}
HTML
<div id="wrap">
<div id="header"></div>
<div id="content_left"></div>
<div id="content_right"></div>
<div id="footer"></div>
</div>
'WebDesign' 카테고리의 다른 글
IE Flicker Bug Fix!! (1) (0) | 2007.10.26 |
---|---|
margin padding (0) | 2007.01.25 |
포토샵보정강좌 - 밝게 부드럽게 보정하기 (0) | 2007.01.18 |
포토샵에서 어두운 사진 밝게 하기 (0) | 2007.01.18 |
가운데 정렬된 사이트의 좌측에 고정 레이어 넣기 (0) | 2007.01.17 |