Can anyone tell me why the background color 'black' isn't being picked up on the footer of this website in IE7?
Asked
Active
Viewed 3,935 times
0
-
1Usually, on Stack Overflow, we expect people to include relevant code in their post. This will ensure that even after the problem is fixed, future visitors will be able to learn from the post. In addition to posting the code in your question, you could also make a jsfiddle which may make people even more likely to help you. – Joshua Dwire Nov 09 '12 at 16:24
-
What's that jQuery attribute that's being applied to the footer tag? Try removing that and see if it works? – Billy Moat Nov 09 '12 at 16:33
-
thanks jdwire in future I will make sure I do this – user1812741 Nov 09 '12 at 16:44
-
@BillyMoat Those are the jQuery expando properties http://stackoverflow.com/questions/7200722/jquery-expando-properties – andyb Nov 09 '12 at 16:44
-
@andyb - Ah, hadn't come across that before. – Billy Moat Nov 09 '12 at 16:55
3 Answers
5
Probably the hasLayout bug - have a quick read of this:
http://www.satzansatz.de/cssd/onhavinglayout.html
Try adding height:1%

Paul Herring
- 66
- 2
1
The footer container has all floated children inside and therefore has no height. You need to clear the floats. There are many ways to do this, ranging from adding a clearfix class to the container or simply adding overflow:hidden
Also related - Background not showing behind floating divs
0
It's probably worth just using the hex value #000000
instead of black
, and see if that fixes the issue.
IE7 is pretty lame sometimes...

pizza247
- 3,869
- 7
- 33
- 47