IE different to FF regarding image and table

L

Laser Lips

Hello, I've got a tiny piece of HTML which looks different in FF and
IE. I am aware of differences between the browsers but I just can't
seem to get this piece to look the same in both browsers.

http://cylo.co.uk/test.html <<<

In IE you'll see it looks fine, but in FF you'll see a big white space
under the image.

Can anyone tell me what to add to make the FF version look like the IE
version?

For your information the HTML code is generated using JavaScript.

Thanks for your help.

Graham
 
R

rf

Laser said:
Hello, I've got a tiny piece of HTML which looks different in FF and
IE. I am aware of differences between the browsers but I just can't
seem to get this piece to look the same in both browsers.

http://cylo.co.uk/test.html <<<

In IE you'll see it looks fine, but in FF you'll see a big white space
under the image.

Can anyone tell me what to add to make the FF version look like the IE
version?

Look into vertical-align:
For your information the HTML code is generated using JavaScript.

Why?
 
L

Laser Lips

Make the image display: block.

Because it's an inline image with vertical-align: baseline (the default)
it sits on the text baseline. IE is getting this wrong.

This one worked Thanks very much. Didn't try the vertical alignment
but thats for responding.
Graham
 

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

No members online now.

Forum statistics

Threads
473,982
Messages
2,570,185
Members
46,736
Latest member
AdolphBig6

Latest Threads

Top