Forum Moderators: not2easy

Message Too Old, No Replies

Problem with 2 column layout with different type widths

         

m_leefs

3:42 am on Mar 3, 2004 (gmt 0)

10+ Year Member



I'm trying to make a 2 col layout with the right column a fixed width (180px) and the left column to fill the rest of the page. The following css works for most of the time, but when the browser window is narrowed the right column jumps under the left column. I've tried to mess around with it the best I've could with no success. Any suggestions would be greatly appreciated.

#masthead{
padding: 10px 0px 0px 0px;
border-bottom: 1px solid #cccccc;
width: 100%;
}

#navBar{
float: right;
width: 180px;
margin: 0px;
padding: 0px;
border-left: 1px solid #cccccc;
border-bottom: 1px solid #cccccc;
}

#content{
float:left;
width: 75%;
margin: 0px;
padding: 5px 10px 5px 5px;
}

bill

4:03 am on Mar 3, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Try the layout suggested in this thread: [Tableless layout] Two divs withs with right aligment [webmasterworld.com]. It will probably work better for you.