Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > HTML > Unwanted cellpadding in IE6 tables?

Reply
Thread Tools

Unwanted cellpadding in IE6 tables?

 
 
Lorne Cameron
Guest
Posts: n/a
 
      06-26-2003
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.

 
Reply With Quote
 
 
 
 
Lorne Cameron
Guest
Posts: n/a
 
      06-26-2003
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).

 
Reply With Quote
 
 
 
 
Kevin Scholl
Guest
Posts: n/a
 
      06-26-2003

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
http://www.velocityreviews.com/forums/(E-Mail Removed)
--------------------------------------------------
Web Development and Graphic Design
http://www.interimag.com/~kscholl/professional/
--------------------------------------------------
We are the music makers, and we are the dreamers
of the dreams...
==================================================

 
Reply With Quote
 
Davmagic.Com
Guest
Posts: n/a
 
      06-26-2003
>From: (E-Mail 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

 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      06-26-2003
In post <3efb3e10$(E-Mail Removed)>
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/
 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      06-26-2003
In post <3efb3e10$(E-Mail Removed)>
Lorne Cameron said...

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


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


--
brucie a. blackford. 27/June/2003 07:04:25 am kilo.
http://loser.brucies.com/
 
Reply With Quote
 
Jacqui or (maybe) Pete
Guest
Posts: n/a
 
      06-27-2003
In article <bdfnte$sshv5$(E-Mail Removed)>,
(E-Mail Removed) says...
> In post <3efb3e10$(E-Mail Removed)>
> Lorne Cameron 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).
 
Reply With Quote
 
Mark Parnell
Guest
Posts: n/a
 
      06-27-2003
Lorne Cameron wrote:
> 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).
>


No you shouldn't - tables are meant for tabular data.

http://www.allmyfaqs.com/faq.pl?Tableless_layouts

--

Mark Parnell
http://www.clarkecomputers.com.au


 
Reply With Quote
 
brucie
Guest
Posts: n/a
 
      06-27-2003
In post <(E-Mail Removed)>
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.



--
brucie a. blackford. 27/June/2003 06:51:01 pm kilo.
http://loser.brucies.com/
 
Reply With Quote
 
Jacqui or (maybe) Pete
Guest
Posts: n/a
 
      06-27-2003
In article <bdh0of$ruros$(E-Mail Removed)>,
(E-Mail Removed) says...
> In post <(E-Mail Removed)>
> 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.
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
CellPadding Uriah Piddle ASP .Net 0 03-08-2007 02:14 AM
cellspacing und cellpadding =?UTF-8?B?TWFydGluIFDDtnBwaW5n?= HTML 6 08-14-2005 10:36 AM
cellpadding - css Jan Faerber HTML 4 12-08-2004 01:54 PM
CSS equiv for cellspacing & cellpadding Todd Cary HTML 12 09-18-2004 08:37 PM
Possible to set table cellspacing; cellpadding in CSS? Gnarlodious HTML 2 04-10-2004 06:31 AM



Advertisments