I have a main wrapper div that is set 100% width. Inside that i would like to have two divs, one that is fixed width and the other that fills the rest of the space. How do i
If you're not tagetting IE6, then float the second HTML: CSS: The margin accounts for the possibility that the 'rest-of-space' Don't give the fixed width one a background; if you need to visibly see these as different 'columns' then use the Faux Columns trick.#main-wrapper {
100%;
background:red;
}
#fixed-width {
width:100px;
float:left
}
#rest-of-space {
margin-left:101px;
/* May have to increase depending on borders and margin of the fixd width div*/
background:blue;
}