|
BeTheBall -> Forcing Right Div to fill space (1/2/2008 12:45:21)
|
Happy New Year CSS gurus. I am having a little trouble with a fairly simple two-column layout. I want a fixed width for my left column and then want the right column to fill in the rest of the space. I have the two columns nested within another div set to 99% width. Problem is, when my content in the right div is narrow, the page does not fill in the entire remaining width. Here is the CSS: .main_content {
margin: 0 auto;
width: 99%;
}
.sd_left {
float:left;
color: #000;
margin: 0;
padding: 0px 0px 0px 0px;
width: 180px;
font: 1.3em arial, helvetica, verdana, sans-serif;
}
.sd_right {
background: #fff url(../images/back_white.jpg) repeat;
clear: both;
float: right;
color: #000;
margin: 0px;
padding: 10px 0px 10px 10px;
font: 1.2em arial, helvetica, verdana, sans-serif;
}
Here is a screen capture of what I am getting on narrow pages.
|
|
|
|