homepage Welcome to WebmasterWorld Guest from 54.211.180.175
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Browsers / Firefox Browser Usage and Support
Forum Library, Charter, Moderators: incrediBILL

Firefox Browser Usage and Support Forum

    
Phantom white space below images in table cells - Firefox/Mozilla etc
Weird extra white space below images inside table cells
PSWorx




msg:1588726
 5:20 pm on Jun 15, 2006 (gmt 0)

Would anyone happen to know why i seem to be getting a white space appear underneath every image i place inside a table cell regardless of contents. This doesnt happen in IE however it does with firefox, mozilla, opera, netscape etc it doesnt happen with any of my other sites n its bugging the hell out of me.

TIA

PREVIEW AVAILABLE ON REQUEST

 

oxbaker




msg:1588727
 7:14 pm on Jun 15, 2006 (gmt 0)

im requesting the preview!

Did you make sure your closing </td> tags are on the same line as the image in your editor.

when i use VS 2003 sometimes i get phantom white space (about the height of a <BR> tag) below content in table cells. This is because VS puts a hidden line break that sometimes renders. So if your tags look like this:

<td>
<img src="image.jpg">
</td>

try

<td><img src="image.jpg"></td>

that MAY help (it does for me sometimes!)

hth,
mcm

PSWorx




msg:1588728
 7:37 pm on Jun 15, 2006 (gmt 0)

Its fine i've sorted it now, had to include the align attribute into the img tag which i dont usualy have to, strange, however all is working now thanks for the help.

asquithea




msg:1588729
 8:46 pm on Jun 15, 2006 (gmt 0)

Using strict rendering, images sit on the text base-line by default. This means that there will be a small gap between the bottom of the image and the table cell border (and above the image if it is small enough).

You can resolve the problem, as you said, by changing the content vertical alignment. It also helps to avoid using tables for structural layout, as this exacerbates the issue.

Note that Gecko shrinks table cells to fit when rendering in Quirks mode, so this problem tends to come as a surprise to many people.

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Browsers / Firefox Browser Usage and Support
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved