Forum Moderators: not2easy
body {
background-color:#000000;
background-image:url("images/background.jpg");
font-family:Verdana, Arial, Helvetica, sans-serif;
color: #fff;
margin:15px;
padding: 0px;
text-align:center;
background-repeat:repeat;
}
#page {
max-width:950px;
min-width:760px;
position:relative;
padding:5px;
margin:0 auto;
text-align:left;
border: 2px solid #3A3B43;
}
#left-sidebar, #right-sidebar {
top:166px;
font-size:8pt;
position:absolute;
}
If I add 10px so top:176px instead, it looks good in IE but then it's 10px too LONG in Firefox. I appreciate any suggestions that can at least point me in the right direction in solving this. :-)
If you can't use such a layout and you just need to fix IE you should highly consider conditional comments [msdn2.microsoft.com].
- John
IMHO, the easiest solution would be to set your global defaults to zero because different browser clients have different settings, then set margins in the elements:
body {
margin: 0;
padding: 0;
}
#left-sidebar, #right-sidebar {
margin-top:166px;
font-size:8pt;
position:absolute; /* I suggest removing this and float the two elements */
}
Marshall
Always Microsoft too. Even Opera, Safari and Konqueror rendered it correctly. :-P