Unwanted cellpadding in IE6 tables?

Discussion in 'HTML' started by Lorne Cameron, Jun 26, 2003.

  1. So I've gotten rid of my site's frames and I've started to convert it
    all to a simple table layout (like I should have done from the start, I
    know). I have images for the header and left table cells which should
    line up perfectly, but in IE6 there seems to be extra cellpadding on the
    bottom of the header cell, even though cellpadding/cellspacing are both
    set to 0 (looks fine in Mozilla though). Here is a link and body source
    - can anyone tell me what I've done wrong?


    http://www.strathsnow.co.uk/new.html


    <body>
    <table CELLPADDING="0" CELLSPACING="0">
    <tr>
    <td COLSPAN=2>
    <img SRC="images/header.gif">
    <tr>
    <td VALIGN="top">
    <img SRC="images/contents.gif">
    <td>
    MAIN CONTENT HERE
    </table>
    </body>


    Thanks.
    LC.
    Lorne Cameron, Jun 26, 2003
    #1
    1. Advertising

  2. Lorne Cameron wrote:
    > Here is a link and body source - can anyone tell me what I've done wrong?
    >
    > http://www.strathsnow.co.uk/new.html



    I've fixed it myself - it's because I hadn't closed the TD tags (very
    bad habit I know, but I was taught that they were unnecessary).
    Lorne Cameron, Jun 26, 2003
    #2
    1. Advertising

  3. Lorne Cameron

    Kevin Scholl Guest

    Lorne Cameron wrote:

    >> Here is a link and body source - can anyone tell me what I've done wrong?
    >>
    >> http://www.strathsnow.co.uk/new.html

    >
    > I've fixed it myself - it's because I hadn't closed the TD tags (very
    > bad habit I know, but I was taught that they were unnecessary).


    Whoever taught you that shouldn't be teaching. Good that you recognize
    the problem, and are making strides to correct it.

    --

    *** Remove the DELETE from my address to reply ***

    ==================================================
    Kevin Scholl

    --------------------------------------------------
    Web Development and Graphic Design
    http://www.interimag.com/~kscholl/professional/
    --------------------------------------------------
    We are the music makers, and we are the dreamers
    of the dreams...
    ==================================================
    Kevin Scholl, Jun 26, 2003
    #3
  4. Lorne Cameron

    Davmagic.Com Guest

    >From: >(Lorne Cameron)
    >I have images for the header and left table >cells which should line up

    perfectly, but in >IE6 there seems to be extra cellpadding >on the
    bottom of the header cell, even >though cellpadding/cellspacing are both
    >set to 0 (looks fine in Mozilla though).
    >http://www.strathsnow.co.uk/new.html
    ><body>
    >  <table CELLPADDING="0" >CELLSPACING="0">
    >      <tr>
    >    <td COLSPAN=2>
    >          <img SRC="images/header.gif">
    >   <tr>
    >        <td VALIGN="top">
    >     <img SRC="images/contents.gif">
    >        <td>
    >     MAIN CONTENT HERE
    >    </table>
    ></body>
    >Thanks.
    >LC.


    Also don't put any spaces within the cells with the images, put the code
    on one line without any spaces:

    <td COLSPAN=2><img SRC="images/header.gif"></td>

    <td VALIGN="top"><img SRC="images/contents.gif"></td>

    Web Design-Magic-Painting-Junking-Games
    INFO 2000 For You
    http://www.davmagic.com
    Davmagic.Com, Jun 26, 2003
    #4
  5. Lorne Cameron

    brucie Guest

    In post <3efb3e10$>
    Lorne Cameron said...

    > So I've gotten rid of my site's frames and I've started to convert it
    > all to a simple table layout (like I should have done from the start, I
    > know).


    i'm sure you mean you should have used CSS from the start

    > http://www.strathsnow.co.uk/new.html


    * stick in a doctype
    * send a charset with your documents
    * quote all your attributes.
    * </td> are optional but some browsers are too stupid to work it out
    if you don't stick them in.
    * use alt text
    * bad:
    <td>
    stuff
    </td>
    good:
    <td>stuff</td>

    * http://validator.w3.org/

    --
    brucie a. blackford. 27/June/2003 06:00:49 am kilo.
    http://loser.brucies.com/
    brucie, Jun 26, 2003
    #5
  6. Lorne Cameron

    brucie Guest

    brucie, Jun 26, 2003
    #6
  7. Jacqui or (maybe) Pete, Jun 27, 2003
    #7
  8. Lorne Cameron

    Mark Parnell Guest

    Mark Parnell, Jun 27, 2003
    #8
  9. Lorne Cameron

    brucie Guest

    brucie, Jun 27, 2003
    #9
  10. In article <bdh0of$ruros$>,
    says...
    > In post <>
    > Jacqui or maybePete said...
    >
    > >>> http://www.strathsnow.co.uk/new.html

    >
    > >> http://usenet.alt-html.org/ssc/ssc.html

    >
    > > Or: http://porjes.com/ssc/ssc.html (ripped off from brucie's - just
    > > showing a couple of alternative methods).

    >
    > i'm sure you owe me several gazillion in royalties but i'll forgive
    > you because now i know its strathclyde!! stuffed if i could read it on
    > that horrible graphic.


    I suspect the designer's suffering from snowblindness.

    I'll add the royalties on to the regular hush-money cheque.
    Jacqui or (maybe) Pete, Jun 27, 2003
    #10
    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. Gnarlodious
    Replies:
    2
    Views:
    7,392
    Gnarlodious
    Apr 10, 2004
  2. Todd Cary
    Replies:
    12
    Views:
    10,474
    kchayka
    Sep 18, 2004
  3. Jan Faerber

    cellpadding - css

    Jan Faerber, Dec 7, 2004, in forum: HTML
    Replies:
    4
    Views:
    31,890
    Michael Fesser
    Dec 8, 2004
  4. =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=

    cellspacing und cellpadding

    =?UTF-8?B?TWFydGluIFDDtnBwaW5n?=, Aug 13, 2005, in forum: HTML
    Replies:
    6
    Views:
    1,562
    =?ISO-8859-1?Q?Martin_P=F6pping?=
    Aug 14, 2005
  5. Uriah Piddle

    CellPadding

    Uriah Piddle, Mar 8, 2007, in forum: ASP .Net
    Replies:
    0
    Views:
    409
    Uriah Piddle
    Mar 8, 2007
Loading...

Share This Page