본문 바로가기
개발.웹 프론트엔드/html

div 왼쪽 오른쪽 정리

by 언제나초심. 2011. 12. 4.
반응형

<div style="width:100%; background:#ccc;">

  <div style="float:left; width:30%; height:500px; background:#9c0;">왼쪽 정렬</div>

  <div style="float:right; width:30%; height:500px; background:#f00;">오른쪽 정렬</div>

</div>

반응형