Tables and borders

Discussion in 'HTML' started by Jon, May 17, 2005.

  1. Jon

    Jon Guest

    I have a table (snippet below) that IE just won't seem to display
    right. It shows a border between the first two rows. Mozilla/Firefox
    don't not show this border. Margins, padding, borders and spacing are
    all set to zero. What is IE seeing that I'm not? Tried posting on
    webauthoring newsgroup, but couldn't get any help there.

    To see full code, go to http://www.jcosby.com/temp/sample.html


    <TABLE cellSpacing="0" cellPadding="0" border="0" width="720">
    <TR>
    <TD colspan="2">
    <a href="index.html"><IMG border="0" src="images/banner.gif"></a>
    </TD>
    </TR>
    <TR valign="top">
    <TD width="130">
    <IMG src="images/navbar1.jpg" border="0" USEMAP="#MyMap">
    </TD>
    <TD class="MainBody" width="590">
    Blah blah blah.
    </TD>
    </TR>


    Jon Cosby
    Jon, May 17, 2005
    #1
    1. Advertising

  2. Jon

    Els Guest

    Jon wrote:

    > I have a table (snippet below) that IE just won't seem to display
    > right. It shows a border between the first two rows. Mozilla/Firefox
    > don't not show this border. Margins, padding, borders and spacing are
    > all set to zero. What is IE seeing that I'm not?


    The space below inline images.

    > Tried posting on
    > webauthoring newsgroup, but couldn't get any help there.
    >
    > To see full code, go to http://www.jcosby.com/temp/sample.html


    td img{vertical-align:bottom}

    That would be the answer in CSS, frankly I don't know what the HTML
    equivalent is. <img border="0" src="images/banner.gif"
    valign="bottom"> maybe?

    --
    Els http://locusmeus.com/
    Sonhos vem. Sonhos vão. O resto é imperfeito.
    - Renato Russo -
    Els, May 17, 2005
    #2
    1. Advertising

  3. Jon

    Safalra Guest

    Jon wrote:
    > I have a table (snippet below) that IE just won't seem to display
    > right. It shows a border between the first two rows. Mozilla/Firefox
    > don't not show this border. Margins, padding, borders and spacing are
    > all set to zero.
    >
    > [snip]
    >
    > <TD colspan="2">
    > <a href="index.html"><IMG border="0" src="images/banner.gif"></a>
    > </TD>


    IE has a habit of rendering whitespace that it shouldn't - try putting
    all that code on one line (without whitespace between the <td> and <a>
    and the </a> and </td>). Better yet, stop using tables for layout, you
    evil person...

    --
    Safalra (Stephen Morley)
    http://www.safalra.com/hypertext/
    Safalra, May 19, 2005
    #3
  4. Jon

    Jon Guest

    Safalra wrote:

    >> I have a table (snippet below) that IE just won't
    >> seem to display right. It shows a border between
    >> the first two rows. Mozilla/Firefox don't not show
    >> this border. Margins, padding, borders and spacing
    >> are all set to zero.


    >> [snip]


    >> <TD colspan="2">
    >> <a href="index.html"><IMG border="0" src="images/banner.gif"></a>
    >> </TD>


    > IE has a habit of rendering whitespace that it
    > shouldn't - try putting all that code on one line
    > (without whitespace between the <td> and <a> and the
    > </a> and </td>). Better yet, stop using tables for
    > layout, you evil person...


    By golly, that works. What do people have against tables? It works as
    well as anything else. It's sure better than frames.


    Jon
    Jon, May 19, 2005
    #4
  5. Jon

    mbstevens Guest

    On Thu, 19 May 2005 07:48:18 -0700, Jon wrote:

    >>> <TD colspan="2">
    >>> <a href="index.html"><IMG border="0" src="images/banner.gif"></a>
    >>> </TD>

    .............
    > By golly, that works. What do people have against tables? It works as
    > well as anything else. It's sure better than frames.


    I would worry more about getting things like
    border="0"
    out of my markup and into CSS. I'll bet the reference sources you're
    using are really old.
    mbstevens, May 19, 2005
    #5
  6. Jon

    Jon Guest

    mbstevens wrote:

    > I would worry more about getting things like
    > border="0" out of my markup and into CSS.
    > I'll bet the reference sources you're
    > using are really old.


    It's been a few years since I've updated it. It's worked in the past,
    so I haven't seen any reason to change. Maybe it's time.


    Jon
    Jon, May 19, 2005
    #6
  7. Jon

    Safalra Guest

    Jon wrote:
    > mbstevens wrote:
    > > Some other people wrote:
    > > > [previous posts on subject of what's wrong with tables]

    > >
    > > I would worry more about getting things like
    > > border="0" out of my markup and into CSS.
    > > I'll bet the reference sources you're
    > > using are really old.

    >
    > It's been a few years since I've updated it. It's worked in the past,
    > so I haven't seen any reason to change.


    I'm sure a club is fairly effective for killing cows, but you don't see
    butchers still using them...

    Non-metaphorically, here's a nicely illustrated page that summarises
    what's wrong with tables:

    http://www.hotdesign.com/seybold/everything.html

    --
    Safalra (Stephen Morley)
    http://www.safalra.com/hypertext/
    Safalra, May 20, 2005
    #7
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Mark Rae

    <asp:Panels, borders and HTML tables

    Mark Rae, Oct 6, 2004, in forum: ASP .Net
    Replies:
    3
    Views:
    5,019
    Mark Rae
    Oct 6, 2004
  2. Michael Wilcox

    Tables with solid black borders?

    Michael Wilcox, Jul 7, 2003, in forum: HTML
    Replies:
    3
    Views:
    23,654
    Michael Wilcox
    Jul 7, 2003
  3. Hostile17

    Borders For Tables Hack

    Hostile17, Sep 2, 2003, in forum: HTML
    Replies:
    2
    Views:
    518
    Philipp Lenssen
    Sep 2, 2003
  4. George
    Replies:
    9
    Views:
    4,895
    George
    Oct 25, 2004
  5. Helen

    Borders around tables?

    Helen, Feb 28, 2006, in forum: HTML
    Replies:
    3
    Views:
    570
    Jonathan N. Little
    Feb 28, 2006
Loading...

Share This Page