# CSS layout issue - IE. which hack?

**URL:** https://forum.kirupa.com/t/css-layout-issue-ie-which-hack/195564
**Category:** web dev
**Created:** [August 1, 2006, 4:45pm UTC](https://forum.kirupa.com/t/css-layout-issue-ie-which-hack/195564 "2006-08-01T16:45:41Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![big\_britches](https://avatars.discourse-cdn.com/v4/letter/b/d26b3c/32.png) [@big\_britches](https://forum.kirupa.com/u/big_britches)
#### Post date: [August 1, 2006, 4:45pm UTC](https://forum.kirupa.com/t/css-layout-issue-ie-which-hack/195564/1 "2006-08-01T16:45:41Z")

</div>

Hi - I see that no less than 50% of the threads issued in this forum are covering a twist on my very question; I guess when I get a grasp on these issues I will have safely arrived in CSSdesignerland…

Here’s a link to the site in question, which is wonderful in FF but shifted horribly to the right in IE:

[http://strongfelt.com/v2/home.html](http://strongfelt.com/v2/home.html)

it works fine in every browser i’ve checked but IE, leading me to believe I need some sort of spacing/white space hack…but which one? I feel like I could get it through tinkering and reading online eventually, but due to serious time constraints and an anxious client, I gratefully and humbly defer to the experience of you fine folks. can anyone help me here? Thanks so much in advance…

## oh - and here’s my CSS. i know it’s chunky, but i’m learning:

/\* CSS Document _/  
/_ HACK IE - regrettable but the easy way to make it behave ( for now) _/  
.clearfix:after { content: “.”; display: block; height: 0; clear: both; visibility: hidden;}  
/_ Hides from IE-mac \*/

- html .clearfix {height: 1%;}  
/\* End hide from IE-mac _/  
/_ basic elements \*/  
body {  
background-image: url(“images/blankBGimage.jpg”);  
background-repeat: no-repeat;  
background-color: #CCC093;  
background-position: top center;  
background-attachment: fixed;  
text-align: center;  
font: normal 11px Arial, Helvetica, sans-serif;  
margin-bottom: 30px;  
padding: 0 12px 0 12px;  
color: #2E2C22;  
}  
p {  
font: normal 12px Arial, Helvetica, sans-serif;  
margin: 0px;  
padding: 0px 12px 0 12px;  
text-align: left;  
}  
p2 {  
font: normal 11px Arial, Helvetica, sans-serif;  
font-weight: bold;  
margin: 0px;  
padding: 0px 12px 0 12px;  
text-align: left;  
}  
h1 {  
font: normal 11px Arial, Helvetica, sans-serif;  
letter-spacing: 0px;  
margin: 0px;  
background-color: none;  
color: #2E2C22;  
}  
h2 {  
font: normal 7px Arial, Helvetica, sans-serif;  
letter-spacing: 0px;  
font-weight: bold;  
padding: 10px 0 0 14px;  
margin: 0px;  
text-align: left;  
background-color: none;  
color: #2E2C22;  
}  
h3 {  
font: normal 9px Arial, Helvetica, sans-serif;  
letter-spacing: 0px;  
margin: 0px;  
padding: 5px 0 5px 10px;  
background-color: none;  
color: #2E2C22;  
}  
h4 {  
font: normal 12px Arial, Helvetica, sans-serif;  
letter-spacing: 0px;  
font-weight: bold;  
margin: 20px 0 10px 10px;  
background-color: none;  
color: #5C0101;  
}  
a:link {  
font-weight: bold;  
text-decoration: none;  
background-color: none;  
color: #2E2C22;  
}  
a:visited {  
font-weight: bold;  
text-decoration: none;  
background-color: none;  
color: #2E2C22;  
}  
a:hover, a:active {  
text-decoration: none;  
background-color: none;  
color: #5C0101;  
}

/\* specific divs \*/  
div#container {  
top: 0px;  
margin-left: auto;  
margin-right: auto;  
min-height: 800px;  
width: 800px;  
}

div#navbar2 {  
background-image: url(“images/subnav.gif”);  
background-repeat: no-repeat;  
position: absolute;  
top: 110px;  
margin-left: 524px;  
width: 97px;  
height: 380px;  
}

div#main {  
position: absolute;  
margin: 60px 0 30px 85px;  
padding: 0px;  
width: 524px;  
text-align:left;  
}

div#header {  
background: transparent;  
background-image: url(“images/header.gif”);  
background-repeat: no-repeat;  
margin: 0px;  
width: 524px;  
height: 106px;  
}

div#nav\_bio {  
float:left;  
margin: 87px 0px 4px 34px;  
}

div#nav\_statement {  
float:left;  
margin: 87px 0px 4px 16px;  
}

div#nav\_portfolio {  
float:left;  
margin: 87px 0px 4px 16px;  
}

div#nav\_resume {  
float:left;  
margin: 87px 0px 4px 105px;  
}

div#nav\_contact {  
float:left;  
margin: 87px 0px 4px 16px;  
}

div#contentwell {  
min-height: 440px;  
width: 524px;  
margin: 0px;  
padding: 0px;  
background-image: url(“images/contentBG.gif”);  
background-repeat: repeat-y;  
}

div#resnav {  
width: 524px;  
height: 50px;  
margin: 0px;  
padding: 0px;  
}

div#resnavfoot {  
width: 524px;  
height: 75px;  
margin: 0px;  
padding: 0px;  
}

div#footer {  
text-align: center;  
background-image: url(“images/footer.gif”);  
background-repeat: no-repeat;  
margin-bottom: 20px;  
padding: 0px;  
width: 524px;  
height: 24px;  
}

#footer a:link, #footer a:visited {  
margin-right: 20px;  
}

ul {  
list-style-type: none;  
padding: 0;  
margin: 0;  
text-align: center;  
}

li {  
margin: 28px 0 28px 0;  
background-repeat: no-repeat;  
}
