Unwanted cellpadding in IE6 tables?

L

Lorne Cameron

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.
 
K

Kevin Scholl

Lorne said:
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
(e-mail address removed)
 
D

Davmagic.Com

From: (e-mail address removed) >(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
 
B

brucie

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

* 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/
 
J

Jacqui or (maybe) Pete

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.
 

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,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top