Can anyone explain to me why Netscape 7 puts spaces below images in cells of a table? If I decrease the font size the the smallest size, all the images are flush against eachother, so I'm sure it's not my coding. How can I get rid of these spaces?
| SitePoint Sponsor |



Can anyone explain to me why Netscape 7 puts spaces below images in cells of a table? If I decrease the font size the the smallest size, all the images are flush against eachother, so I'm sure it's not my coding. How can I get rid of these spaces?
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.





Take a look at this: http://developer.netscape.com/evange...les/img-table/
Basically you need to add the following rule to your style sheet:Code:td img {display: block;}





I hope that's a bug!
Adobe Certified Coldfusion MX 7 Developer
Adobe Certified Advanced Coldfusion MX Developer
My Blog (new) | My Family | My Freelance | My Recipes





Nope, it's a deliberate feature (I don't know if IE does the same thing when in strict rendering mode but it should). The article on Netscape devcenter explains why and gives a valid workaround though.



I think they're taking these standards a little too extreme now. I really like the new Netscape 7, and started using it more than IE - which is a first for me since my beginning - but I think between NS and W3C, they need to compromise a bit.
Thanx for the info tho Skunk. It's fixed my prob.
- Pip
---------------------------------------------------------------------------------
Nothing takes the taste out of peanut butter quite like unrequited love.





It looks like the next version of Mozilla will have a new rendering mode that fixes this particular problem - see my blog for details:
http://www.bath.ac.uk/~cs1spw/blog/a...aRenderingMode
Bookmarks