473,405 Members | 2,160 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,405 software developers and data experts.

IE puts space at bottom of cell

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
at http://www.TitanNews.com <<<<

-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Jul 20 '05 #1
4 9598
In article Manuel wrote:
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¹?
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ä
Jul 20 '05 #2
>>
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
at http://www.TitanNews.com <<<<

-=Every Newsgroup - Anonymous, UNCENSORED, BROADBAND Downloads=-

Jul 20 '05 #3
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.

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:ka****@sonoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #4
Werner Partner <ka****@sonoptikon.de> wrote:
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 <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

23
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. Here's the style <style>...
1
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. Here's the style <style>...
0
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. ps. I know you are not supposed to do...
0
by: MattB | last post by:
Hello please help, I have a table cell with a div in it. The div has a width of 300px. but when it is rendered it puts extra space into the table cell. Here's the style <style>...
4
by: Antoun | last post by:
Hello, Is there a means, with CSS or else, to remove or resize the blank line after a P ? I've tried margin-bottom, padding-bottom, cell-spacing, and found nothing ! Thanks for your answers !...
2
by: Beffmans | last post by:
Hi How do i remove the space below the 'hello'? <TABLE> <tbody> <tr> <td> <asp:panel id="pnlTop" Runat="server"> <TABLE>
0
by: rocketmonkeys | last post by:
The below mangled garbage is a fixed text illustration. I'll try to describe the problem. This is a general web layout problem I've had for a while, not confined to this specific case. I would...
7
by: ridergroov | last post by:
Hi folks. I'm trying to figure out how I can insert 2 different graphics into a table cell and align one to the top and one to the bottom using CSS. I used the "vertical align" to "top" in DW but...
6
Tarantulus
by: Tarantulus | last post by:
Hi guys, The page i'm working on is mtbc.awardspace.com/test/index.php (don't worry about the PHP bit, it's just some includes) now, in firefox the layout works to a point, but in IE there...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.