help! Table cells

Discussion in 'HTML' started by Micro, Feb 20, 2004.

  1. Micro

    Micro Guest

    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
     
    Micro, Feb 20, 2004
    #1
    1. Advertisements

  2. Micro

    Els Guest

    Add
    td img {vertical-align:bottom;}
    to your css.
     
    Els, Feb 20, 2004
    #2
    1. Advertisements

  3. Micro

    Steve Pugh Guest

    <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
     
    Steve Pugh, Feb 20, 2004
    #3
  4. Micro

    Sid Ismail Guest

    : 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
     
    Sid Ismail, Feb 20, 2004
    #4
    1. Advertisements

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 (here). After that, you can post your question and our members will help you out.