in it's initial form, the div is a block element but it can be set as display:inline  and display:block is just an assurance that it will be SURE a block. But, why 100%?
to center a div I make something like this :
.main_div {
width:980px; margin:0 auto; background-color:#09f; /*  */
}
edit // a fluid layout means you don't need a div... the entire page is yours but... this is not to nice for the design. You can use floats for columns 
Last edited by vectorialpx : 04-01-2008 at 05:41 AM.
|