# 2 col Layout

**URL:** <https://forum.kirupa.com/t/2-col-layout/41551>\
**Category:** web dev\
**Created:** [January 30, 2004, 11:31am UTC](https://forum.kirupa.com/t/2-col-layout/41551 "2004-01-30T11:31:48Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![omkar](https://avatars.discourse-cdn.com/v4/letter/o/bb73d2/32.png) [@omkar](https://forum.kirupa.com/u/omkar)\
**Post date:** [January 30, 2004, 11:31am UTC](https://forum.kirupa.com/t/2-col-layout/41551/1 "2004-01-30T11:31:48Z")

</div>

hi this is my CSS code for 2 col layout

#left {  
float:left;  
width:15%;  
height:100%;  
background:#e7efff;  
border-right:0px solid #000;  
margin:0px;  
}

#right{}

when i put a table on \<div id=“right”\> (width=“100%”)  
the table goes down to the page. i have 7 text boxes sized 6 in that table \<tr\> horizotally. what is the problem with my code please  
help me  
☹
