Hi, I'm having some spacer problems on my new layout.
As you can see in Firefox it has 7px padding (as supposed too) and in Internet Explorer it has 10px padding.
I know it is caused by the red sidebar so here's the CSS code for that sidebar:
Code:
#navigation {
padding: 0;
margin: 0;
width: 150px;
float: left;
}
And the CSS code for the content:
Code:
#content {
margin: 0 0 0 160px;
}
My layout's wide is 760px, so 150+10+600 is excactly right. (content is 600px wide with 10px spacing)
Though if I change the content CSS to:
Code:
#content {
margin: 0 0 0 160px;
width: 600px;
}
In IE the content will be under the sidebar, and in FireFox it looks ok.
if I get rid of the margin part and look in IE, I can see that there's about 3px between the sidebar and the content, so some kind of stupid IE spacer bug must be causing it, this also appears to happen with images regularly.
Does anyone know a hack/line of CSS to fix this padding problem?