| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
Registered User
Join Date: Jun 2008
Posts: 3
|
I'm trying to create a layout using divs and css. The layout is rendered correctly on IE but differently on other browsers(Firefox,Opera). The main problem is that I defined a white background-color for the content(id="dashboard" ) and a dark gray color for the body background-color. IE is the only browser that seems to recognize the white background. What am I doing wrong? Any help is appreciated. I have attached screen shots of how it looks on recent versions of ie and firefox Also attached is the html code. |
|
|
|
|
|
#4 (permalink) | |
|
Registered User
Join Date: Jun 2008
Posts: 2
|
Quote:
You simply have to do that so that the browser(s) understand that the Div is actually "wrapping around" the other div's that you are floating. The reason that it worked in IE (Im guessing IE 6) is that it in some cases like to let sloppy code work. You can use overflow: auto too but. I prefer hidden because it's what I've always used. |
|
|
![]() |