help! Table cells

M

Micro

Hello All,

Why does Netscape 7.1 make a blank space(about 10px) at the bottom of table cells?
In IE 6 everything is ok, and the pictures stick together.
How to aliminate this spaces in NS?

I even used css with margins and padings set to 0px.

<TABLE cellpadding="0" cellspacing="0">
<TR><TD><img src="home.gif"></TD></TR>
<TR><TD><img src="lozanov_main_08.gif"></TD></TR>
</TABLE>

Thanks!

Micro
(e-mail address removed)
 
E

Els

Micro said:
Hello All,

Why does Netscape 7.1 make a blank space(about 10px) at the bottom of table cells?
In IE 6 everything is ok, and the pictures stick together.
How to aliminate this spaces in NS?

I even used css with margins and padings set to 0px.

<TABLE cellpadding="0" cellspacing="0">
<TR><TD><img src="home.gif"></TD></TR>
<TR><TD><img src="lozanov_main_08.gif"></TD></TR>
</TABLE>

Add
td img {vertical-align:bottom;}
to your css.
 
S

Steve Pugh

Micro said:
Why does Netscape 7.1 make a blank space(about 10px) at the bottom of table cells?
In IE 6 everything is ok, and the pictures stick together.
How to aliminate this spaces in NS?

I even used css with margins and padings set to 0px.

<TABLE cellpadding="0" cellspacing="0">
<TR><TD><img src="home.gif"></TD></TR>
<TR><TD><img src="lozanov_main_08.gif"></TD></TR>
</TABLE>

<img> is an inline element. That means that it sits on the text
baseline. There is room under the text baseline for the descenders of
those letters which have them. In Standards mode (which presumably
your doctype triggers) Mozilla gets this right. In Quirks mode or
Almost Standards modes it will copy the behaviour of other browsers.

So either change your doctype to trigger one of the other rendering
modes, or apply a little bit of CSS:
td img {display: block;}

Steve
 
S

Sid Ismail

: Hello All,
:
: Why does Netscape 7.1 make a blank space(about 10px) at the bottom of table cells?
: In IE 6 everything is ok, and the pictures stick together.
: How to aliminate this spaces in NS?
:
: I even used css with margins and padings set to 0px.
:
: <TABLE cellpadding="0" cellspacing="0">
: <TR><TD><img src="home.gif"></TD></TR>
: <TR><TD><img src="lozanov_main_08.gif"></TD></TR>
: </TABLE>


Why did you use tables?

Sid
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top