B
Bob in PA
Hi,
I just started learning CSS, and am having a problem getting some
spacing to work. I have a header image 700px X 100px and have several small
images underneath of it. My goal is to have those images seamlessly line up
with the header image, and managed to do it with the {position: absolute}
tag. But the problem is, it doesn't resize right in Mozilla.
So I got rid of the absolute part and replaced it with relative,
adjusted the px amounts and it all worked in IE6. I checked Mozilla, and
there was a 5 pixel gap between the header and games images. I adjusted the
px amounts again, and this time ended up with something that looked good in
Mozilla, but squeezed the images together in IE6. Is it something that I'm
doing wrong? Or is it just something that browsers don't like?
Lines up right in IE6, but shows a 5 pixel gap in Mozilla
<STYLE TYPE="text/css">
<!--
.header { position: absolute;
left: 10px; top: 10px }
.games { position: relative;
left: 112px; top: 5px; }
other images, etc
Lines up right in Mozilla, but the games image is a 5 pixels under the
header image
<STYLE TYPE="text/css">
<!--
.header { position: absolute;
left: 10px; top: 10px }
.games { position: relative;
left: 112px; top: 0px; }
other images, etc
Thanks for your help,
Bob
I just started learning CSS, and am having a problem getting some
spacing to work. I have a header image 700px X 100px and have several small
images underneath of it. My goal is to have those images seamlessly line up
with the header image, and managed to do it with the {position: absolute}
tag. But the problem is, it doesn't resize right in Mozilla.
So I got rid of the absolute part and replaced it with relative,
adjusted the px amounts and it all worked in IE6. I checked Mozilla, and
there was a 5 pixel gap between the header and games images. I adjusted the
px amounts again, and this time ended up with something that looked good in
Mozilla, but squeezed the images together in IE6. Is it something that I'm
doing wrong? Or is it just something that browsers don't like?
Lines up right in IE6, but shows a 5 pixel gap in Mozilla
<STYLE TYPE="text/css">
<!--
.header { position: absolute;
left: 10px; top: 10px }
.games { position: relative;
left: 112px; top: 5px; }
other images, etc
Lines up right in Mozilla, but the games image is a 5 pixels under the
header image
<STYLE TYPE="text/css">
<!--
.header { position: absolute;
left: 10px; top: 10px }
.games { position: relative;
left: 112px; top: 0px; }
other images, etc
Thanks for your help,
Bob