div좀 짜주세요 ㅠㅠ
| 상단1000픽셀 | |
| 왼쪽200픽셀 | 오른쪽 |
| 하단 | |
폭은 전체 1000픽셀이구 위와같이해서
전체테이블이 중앙정렬하려고 합니다
div전체가 센터에 붙게요
부탁드립니다
초보라서 ㅡ,ㅜ
|
댓글을 작성하시려면 로그인이 필요합니다.
댓글 5개
<table style="width: 100%; ">
<tr><td colspan="2">상단1000</td></tr>
<tr>
<td width=200>200</td>
<td width=800>800</td>
</tr>
<tr><td colspan="2">bottom</td></tr>
</table>
</div>
이거 참고하시면 되겠네요 :D
<table width="100%">
<tr>
<td colspan="2">
상단 1000px
</td>
</tr>
<tr>
<td width="200px">
200
</td>
<td width="800px">
800
</td>
</tr>
<tr>
<td colspan="2">
bototm
</td>
</tr>
</table>
</div>
body{text-align:center}
/* div{border: 1 solid red} 테스트용 -나중에 지우세요 보더때문에 오른쪽이 밑으로 내려오니 테스트시에는 Wrap width를 1010정도로 늘려서 테스트하세요 */
#Wrap{width:1000px;}
#Wrap #header{width:100%; height:100px;}
#Wrap #left{float:left; width:200px; height:100px;}
#Wrap #right{float:left; width:800px; height:100px;}
#Wrap #footer{clear:both;width:100%;height:100px}
</STYLE>
<div id="Wrap">
<div id="header"></div> <!--상단 1000픽셀-->
<div id="left"></div> <!--왼쪽 200픽셀-->
<div id="right"></div> <!--왼쪽 200픽셀-->
<div id="footer"></div> <!--하단 200픽셀-->
</div>