Hi,
Mozilla has different margins to ie on some elements so you have to set them explicitly to cater for any differences such as the p at the top of the page. Also mozilla has a top margin bug where it occasionally inherits the margin of its first child element.
The code at the top of the page can be simplified to rectify the problem.
I'm not sure what the other problem with ie is at the bottom of the page but again simplifying the code seems to make it work ok. (I've adjusted one of mozillas margins again to make everyhing appear equal, although if you spend some time simplifying the positioning scheme you might find where the difference is occuring.
Try changing the named styles to exactly as below and I think the layout should be like you want.
Code:
#head {
position: relative;
border-top: 5px solid #03c;
}
#head p {
text-align:right;
margin-top: 0px;
}
#content {
position: relative;
clear: both;
line-height: 1.5em;
background: url(../head_programs.gif) no-repeat left top;
padding-top: 20px;
}
html>body #content {padding-top: 40px;}
#main {
width: 70%;
margin: 0px 0 0 0;
padding-right: 15px;
font-size: 1em;
text-align: justify;
}
Hope that helps.
Paul
Bookmarks