IE and FF problem with inserting hor space

K

KiwiBrian

I wish to use CSS to insert a defined height of horizontal spacing between a
number of images in a vertical column of a table.
I wish to be able to control the spacing in pixels from 1 upwards, and I
wish it to be displayed as the same amount of vertical spacing in both IE6
and Firefox.
After many trials I am asking for a recommended method.
Thanks
Brian Tozer
 
M

Mark Parnell

Deciding to do something for the good of humanity, KiwiBrian
I wish to use CSS to insert a defined height of horizontal spacing between a
number of images in a vertical column of a table.

img {padding-bottom: 15px;}

doesn't work?
After many trials I am asking for a recommended method.

Care to share your trials? Or at least the closest you've got?
 
K

KiwiBrian

"Mark Parnell" wrote
KiwiBrian declared:
img {padding-bottom: 15px;}
doesn't work?
Care to share your trials? Or at least the closest you've got?

Thanks Mark
I have just tried on a page with the following doctype:-

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">

the following test:-

<img style="padding-bottom: 1px;" src="images/advert.gif" width="180"
height="130">
<img style="padding-bottom: 1px;" src="images/advert.gif" width="180"
height="130">
<img src="images/advert.gif" width="180" height="130"></div>

This produced a significant discrepancy in the displayed height of the
inter-image gap between IE6 and Firefox 1.5.0.5
Comments?

Brian
 
K

KiwiBrian

KiwiBrian said:

Further investigation showed that Mark's solution was correct.
My discrepancies were caused by the "Whitespace Bug" in IE6.
In other words the successive image tags must be in one
continuous/contiguous string, and not each on it's own line in the source.
Even the concluding </td> must not be on the next line.
Grrrrr.
Brian Tozer
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,780
Messages
2,569,611
Members
45,281
Latest member
Pedroaciny

Latest Threads

Top