HighDots Forums  

IE puts space at bottom of cell

HTML Writing HTML for the Web (comp.infosystems.www.authoring.html)


Discuss IE puts space at bottom of cell in the HTML forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
Manuel
 
Posts: n/a

Default IE puts space at bottom of cell - 05-04-2004 , 10:39 AM






I want to create a table in which 2 images "connect" vertically with
each other. Mozilla does this without a problem, but IE keeps putting a
small whitespace between the bottom of the image and the bottom border.

This is my code:
------------------------
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td>
<img src='MyTopImage.gif'>
</td>
</tr>
<tr>
<td>
<img src='MyBottomImage.gif'>
</td>
</tr>
</table>
------------------------

How can I make IE display the images one after the other, without a
space between?

Thank You,
Manuel



.................................................. ...............
Posted via TITANnews - Uncensored Newsgroups Access
Quote:
at http://www.TitanNews.com
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-



Reply With Quote
  #2  
Old   
Lauri Raittila
 
Posts: n/a

Default Re: IE puts space at bottom of cell - 05-04-2004 , 10:52 AM






In article Manuel wrote:
Quote:
I want to create a table in which 2 images "connect" vertically with
each other. Mozilla does this without a problem, but IE keeps putting a
small whitespace between the bottom of the image and the bottom border.
Most likely because mozilla uses almost standards mode, ie makes mistake
purposefully? URL¹?

Quote:
This is my code:
------------------------
table cellpadding="0" cellspacing="0" border="0"
....
<tr
<td
<img src='MyBottomImage.gif'
</td
</tr
/table
------------------------

How can I make IE display the images one after the other, without a
space between?
Remove spaces between <td>, <img> and </td>

And/or add
td img {display:block} in your CSS.

[1] Document type declaration is important
[2] We dont have MyBottomImage.gif
[3] That is behind firewall/secret/only on your computer is just
excuse

--
Lauri Raittila <http://www.iki.fi/lr> <http://www.iki.fi/zwak/fonts>
I'm looking for work | Etsin työtä


Reply With Quote
  #3  
Old   
Manuel
 
Posts: n/a

Default Re: IE puts space at bottom of cell - 05-04-2004 , 11:11 AM



Quote:
How can I make IE display the images one after the other, without a
space between?


Remove spaces between <td>, <img> and </td
Removing the white space did the trick, thanks.



.................................................. ...............
Posted via TITANnews - Uncensored Newsgroups Access
Quote:
at http://www.TitanNews.com
-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-



Reply With Quote
  #4  
Old   
Werner Partner
 
Posts: n/a

Default Re: IE puts space at bottom of cell - 05-04-2004 , 04:41 PM



Manuel schrieb:

Quote:
I want to create a table in which 2 images "connect" vertically with
each other. Mozilla does this without a problem, but IE keeps putting a
small whitespace between the bottom of the image and the bottom border.

This is my code:
------------------------
table cellpadding="0" cellspacing="0" border="0"
tr
td
img src='MyTopImage.gif'
/td
/tr
tr
td
img src='MyBottomImage.gif'
/td
/tr
/table
------------------------

How can I make IE display the images one after the other, without a
space between?

Eventually you could try "margin:0"

Werner


--
-----------------------------------------------------------
Werner Partner * Tel +49 2366 886606 * Fax: 886608
mailto:kairos (AT) sonoptikon (DOT) de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/


Reply With Quote
  #5  
Old   
Steve Pugh
 
Posts: n/a

Default Re: IE puts space at bottom of cell - 05-04-2004 , 04:57 PM



Werner Partner <kairos (AT) sonoptikon (DOT) de> wrote:
Quote:
Manuel schrieb:

I want to create a table in which 2 images "connect" vertically with
each other. Mozilla does this without a problem, but IE keeps putting a
small whitespace between the bottom of the image and the bottom border.

tr
td
img src='MyTopImage.gif'
/td


Eventually you could try "margin:0"
In the case above, wouldn't make any difference.

In IE the space is caused by the white space in the code.
(If Mozilla was in Standards mode then the space there would be caused
by the default line-height).

There is no default margin on <img> in any common browser so margin: 0
doesn't make any difference in said browsers. (Not ruling out the
possibility that such a browser does exist, but it's not called
Internet Explorer, or Mozilla, or Opera, or Netscape, etc..)

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <steve (AT) pugh (DOT) net> <http://steve.pugh.net/>


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.