Problem with divs in IE9
Permalink
Hello,
anyone out there that can provide any insight on this one would be greatly appreciated!
By no means am I an expert in css so many thanks in advance to anyone that can help. My custom there works perfectly in every browser but IE9 (imagine that!)
The homepage layout is a content wrapper div with 4 nested divs. 1 that spans the entire width of the screen on top and 3 that span the entire width of the site side by side directly below it.
PROBLEM: anytime I use any block other than basic content (ie... problog, simple news...), the block splits itself into what looks like 2 divs and messes up the whole layout. I have each of the divs floated left (except for the right div.. its floated right)
FYI: I am calling a separate stylesheet for IE..
here is a link tot he site.
http://www.reaction-nutrition.com...
If you view the site in Firefox you can see what its supposed to look like. View it IE9 and you'll see how it is splitting the div.
Here is the css:
This is a bit messy as I'm not done with it yet... But I truly appreciate any guidance
Thanks
anyone out there that can provide any insight on this one would be greatly appreciated!
By no means am I an expert in css so many thanks in advance to anyone that can help. My custom there works perfectly in every browser but IE9 (imagine that!)
The homepage layout is a content wrapper div with 4 nested divs. 1 that spans the entire width of the screen on top and 3 that span the entire width of the site side by side directly below it.
PROBLEM: anytime I use any block other than basic content (ie... problog, simple news...), the block splits itself into what looks like 2 divs and messes up the whole layout. I have each of the divs floated left (except for the right div.. its floated right)
FYI: I am calling a separate stylesheet for IE..
here is a link tot he site.
http://www.reaction-nutrition.com...
If you view the site in Firefox you can see what its supposed to look like. View it IE9 and you'll see how it is splitting the div.
<body> <div id="header"></div> <!--BEGIN 1000px Container div--> <div id="container"> <div id="spacer1"></div> <div id="nav"> <?php $a = new Area('Header Nav'); $a->display($c); ?> </div> <div id="logo"> <div id="spacer_inlogo"></div> <div id="tab"> <?php
Viewing 15 lines of 48 lines. View entire code block.
Here is the css:
#container { height: auto; width: 1000px; margin-top: -80px; margin-right: auto; margin-bottom: auto; margin-left: auto; } #content_holder { height: auto; width: 1000px; background-color: #000; margin-top: auto; margin-right: auto; margin-bottom: auto;
Viewing 15 lines of 134 lines. View entire code block.
This is a bit messy as I'm not done with it yet... But I truly appreciate any guidance
Thanks
There are few errors with your CSS even with Firefox, Chrome and Safari.
Top image does centralise and Flash sits down from where it should.
You could try floating all divs to the left.