cj2a
12-10-2007, 09:30 PM
Hi all,
My first run at setting up an all css site and it's slow going. I think I've about got things working, but there is one thing driving me crazy. Under the main photo on this home page there should be a 2px white margin. On every browser I've got on my mac it's fine (Firefox, Camino, Safari, Explorer, Navigator), but on a PC with Explorer the 2px jumps to more like 4px.
Here is the test site: http://www.artbitz.com/ff_web/
Here is the css that displays the photo, and the gray bar under it:
#main_image {
margin:0 0 2px 0;
width: 900px;
clear:both;
}
#subhead_bar {
width: 900px;
height: 26px;
margin:0;
border-bottom: 4px solid #a8a8a8;
background-color: #f5f5f5;
background: url(images/subhead_grad.jpg) repeat-y top left;
}
What's weird is that if I remove the 2px bottom margin on #main_image the white margin goes away on all the Mac browsers, which I would expect, but the PC then shows a nice 2px white margin...any ideas?
BTW, yes, I'm clearing a float in with the main_image...crude and probably not elegant...probably a much better way...I'm still learning.
Thank you in advance.
My first run at setting up an all css site and it's slow going. I think I've about got things working, but there is one thing driving me crazy. Under the main photo on this home page there should be a 2px white margin. On every browser I've got on my mac it's fine (Firefox, Camino, Safari, Explorer, Navigator), but on a PC with Explorer the 2px jumps to more like 4px.
Here is the test site: http://www.artbitz.com/ff_web/
Here is the css that displays the photo, and the gray bar under it:
#main_image {
margin:0 0 2px 0;
width: 900px;
clear:both;
}
#subhead_bar {
width: 900px;
height: 26px;
margin:0;
border-bottom: 4px solid #a8a8a8;
background-color: #f5f5f5;
background: url(images/subhead_grad.jpg) repeat-y top left;
}
What's weird is that if I remove the 2px bottom margin on #main_image the white margin goes away on all the Mac browsers, which I would expect, but the PC then shows a nice 2px white margin...any ideas?
BTW, yes, I'm clearing a float in with the main_image...crude and probably not elegant...probably a much better way...I'm still learning.
Thank you in advance.