Issues with ie8

1.31

After validating my code the other day I went to test in ie8, and one would think maybe that finally got it right. Think again, my design was a complete mess.

One problem that I found rather strange was my block element footer which was being pushed up the page. Now, I’m not a big fan of using


<div id="clear_float"></div>

just because I don’t believe in adding extra markup to the page just for positioning and nothing else, so here is my before and after:

<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
</head>

footer /* all browsers */
{
     position: relative;

     height: 355px;
     width: 100%;

     clear: both;
     background: #002039 url(http://www.k35c.net/wordpress/images/sky_background_footer.jpg) center bottom no-repeat;
}

footer /* ie 8 */
{
     height: 355px;
     width: 100%;
     float: left;

     overflow: hidden;
}

Post to Twitter