Hi, I've run into a problem with IE 6 vs. Mozilla when displaying a
completely CSS positioned page, and was wondering if any resident CSS guru
might quickly be able to find the problem(s). Thank you.
In IE, the page looks how I want it to look (picture below):
In Mozilla Firefox, somehow it's not quite right (pic below):
Here is the CSS and HTML (with some omissions for brevity):
body {
background-image: url(../images/bg.jpg);
border: 4px inset #454545;
width: 636px;
margin: 20px auto;
text-align: center;
}
#container {
background-color: #000000;
color: #AEAA9D;
font-family: Trebuchet MS, Tahoma, Arial, "Times New Roman", sans-serif;
font-size: 100%;
padding: 0;
margin: 0;
text-align: left;
}
#mainart {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 55px;
margin-bottom: 35px;
text-align: center;
}
..artblock {
width: 450px;
border: 4px outset #AEAA9D;
color: #F8F4E5;
background-color: #857F75;
}
..artistname {
float: left;
padding: 10px;
top: 80px;
text-align: left;
}
..artistfirst {
color: #F8F4E5;
font-size: 150%;
font-weight: bold;
}
..limitededitio n {
font-size: 70%;
}
..artimage {
float: right;
font-size: 1px;
border: 4px inset #AEAA9D;
text-align: center;
}
#footer {
font-size: 70%;
text-align: center;
}
..hrgraphic {
font-size: 1px;
}
#navfooter {
display: block;
margin-top: 2px;
margin-bottom: 5px;
}
<body>
<div id="container" >
<div id="mainart">
<div class="artblock ">
<div class="artistna me">
<span class="artistfi rst">S</span>teven <span
class="artistfi rst">H</span>ofberger<b r /><span
class="limitede dition">Limited Editions: 50</span>
</div>
<div class="artimage ">
<img src="images/hofberger_miniv ase.jpg" height="200" width="200" alt=""
/>
</div>
</div>
</div>
<div id="footer">
<div class="hrgraphi c">
<img src="images/bottomlights.jp g" width="246" height="52" alt="" /><br />
<img src="images/hr.jpg" width="580" height="1" alt="" />
</div>
<div id="navfooter" >
<a href="artists.h tm" class="navfoote r">Artists</a>|<a href="contact.h tm"
class="navfoote r">Contact Information</a>|<a href="about.htm "
class="navfoote r">About Us</a>
</div>
<div id="copyright" >
Copyright ©2004 Sunmetal Fine Art Co. All Rights Reserved.
</div>
</div>
</div>
completely CSS positioned page, and was wondering if any resident CSS guru
might quickly be able to find the problem(s). Thank you.
In IE, the page looks how I want it to look (picture below):
In Mozilla Firefox, somehow it's not quite right (pic below):
Here is the CSS and HTML (with some omissions for brevity):
body {
background-image: url(../images/bg.jpg);
border: 4px inset #454545;
width: 636px;
margin: 20px auto;
text-align: center;
}
#container {
background-color: #000000;
color: #AEAA9D;
font-family: Trebuchet MS, Tahoma, Arial, "Times New Roman", sans-serif;
font-size: 100%;
padding: 0;
margin: 0;
text-align: left;
}
#mainart {
display: block;
margin-left: auto;
margin-right: auto;
margin-top: 55px;
margin-bottom: 35px;
text-align: center;
}
..artblock {
width: 450px;
border: 4px outset #AEAA9D;
color: #F8F4E5;
background-color: #857F75;
}
..artistname {
float: left;
padding: 10px;
top: 80px;
text-align: left;
}
..artistfirst {
color: #F8F4E5;
font-size: 150%;
font-weight: bold;
}
..limitededitio n {
font-size: 70%;
}
..artimage {
float: right;
font-size: 1px;
border: 4px inset #AEAA9D;
text-align: center;
}
#footer {
font-size: 70%;
text-align: center;
}
..hrgraphic {
font-size: 1px;
}
#navfooter {
display: block;
margin-top: 2px;
margin-bottom: 5px;
}
<body>
<div id="container" >
<div id="mainart">
<div class="artblock ">
<div class="artistna me">
<span class="artistfi rst">S</span>teven <span
class="artistfi rst">H</span>ofberger<b r /><span
class="limitede dition">Limited Editions: 50</span>
</div>
<div class="artimage ">
<img src="images/hofberger_miniv ase.jpg" height="200" width="200" alt=""
/>
</div>
</div>
</div>
<div id="footer">
<div class="hrgraphi c">
<img src="images/bottomlights.jp g" width="246" height="52" alt="" /><br />
<img src="images/hr.jpg" width="580" height="1" alt="" />
</div>
<div id="navfooter" >
<a href="artists.h tm" class="navfoote r">Artists</a>|<a href="contact.h tm"
class="navfoote r">Contact Information</a>|<a href="about.htm "
class="navfoote r">About Us</a>
</div>
<div id="copyright" >
Copyright ©2004 Sunmetal Fine Art Co. All Rights Reserved.
</div>
</div>
</div>
Comment