473,795 Members | 3,457 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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='MyBottomIm age.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 9616
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='MyBottomIm age.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.g if
[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='MyBottomIm age.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****@s onoptikon.de * http://www.sonoptikon.de
hören Sie Klassik: http://www.drmk.ch/
Jul 20 '05 #4
Werner Partner <ka****@sonopti kon.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
18641
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> #treecontainer {
1
7126
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> #treecontainer {
0
1297
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 it, but can you. Here's the style <style>
0
2536
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> #treecontainer {
4
17149
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 ! Antoun
2
1582
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
1629
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 like to have a block of a fixed size (Say, a DIV on the top of the page of height 100px) and a block filling the rest of the page (in this example, a DIV with height of PAGE_HEIGHT - 100px). Is there any way to do this, either cleanly or hacked?...
7
3348
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 nothing happens. I don't understand why. Please help. Thanks.
6
2362
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 are 1-2px gaps between the divs. can anyone tell me why this is? also, as I said the site works to a point in firefox, but the left and right bars around the content have height:600px set, but only seem to have height if I put content in them...
0
9672
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10437
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10214
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
10001
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9042
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6780
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5563
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4113
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3723
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.