PDA

View Full Version : HTML problem on 3rd party page



Neil Davidson
2004-06-09, 01:29
That's bad code that is :)

notice none of the <td> or <tr> tags are being closed in that table because
they are commented out. I guess it is just lucky IE guesses correctly how to
render that :)

-----Original Message-----
From: discuss-bounces (AT) lists (DOT) slimdevices.com
[mailto:discuss-bounces (AT) lists (DOT) slimdevices.com]On Behalf Of Michael
Herger
Sent: 09 June 2004 09:07
To: Slim Devices Discussion
Subject: [slim] HTML problem on 3rd party page


Hi

I don't know whether it's Opera badly displaying incorrect code or only
Opera interpreting bad code correctly :-).

On http://www.slimdevices.com/dev_third_party.html the "Custom
installation and hardware mods" table does not span all columns in opera.
In fact this might be due to the code (stripped here for legibility):

<tr><td>Custom Installation and Hardware Mods</td></tr>
<tr><td colspan=2><div class="tightdash"></div></td></tr>
<tr><td width="30%">some nice text<!--<td width=15%></tr>-->

-> only the second line (the dashes) span two columns, all the rest does
not.

Well, that is really important stuff :-).

--

Michael

-----------------------------------------------------------
http://www.jo-sac.ch - JO-SAC inoffiziell!
http://www.herger.net/photo - mein kleines Photoalbum

kevin
2004-06-09, 10:16
Hi,

Opera was just assuming that since only one td field was being
specified that the colspan was 1, but other browsers (I tested this
with mozilla, IE, and Safari) were assuming it was the entire table. I
set the colspan to 3 on each line and that fixed the problem.

And closed the <tr>s. Not sure why I left that part commented, must
have gotten sidetracked. :/

Should look fine now.

Regards,
Kevin P.

On Jun 9, 2004, at 1:29 AM, Neil Davidson wrote:

> That's bad code that is :)
>
> notice none of the <td> or <tr> tags are being closed in that table
> because
> they are commented out. I guess it is just lucky IE guesses correctly
> how to
> render that :)
>
> -----Original Message-----
> From: discuss-bounces (AT) lists (DOT) slimdevices.com
> [mailto:discuss-bounces (AT) lists (DOT) slimdevices.com]On Behalf Of Michael
> Herger
> Sent: 09 June 2004 09:07
> To: Slim Devices Discussion
> Subject: [slim] HTML problem on 3rd party page
>
>
> Hi
>
> I don't know whether it's Opera badly displaying incorrect code or only
> Opera interpreting bad code correctly :-).
>
> On http://www.slimdevices.com/dev_third_party.html the "Custom
> installation and hardware mods" table does not span all columns in
> opera.
> In fact this might be due to the code (stripped here for legibility):
>
> <tr><td>Custom Installation and Hardware Mods</td></tr>
> <tr><td colspan=2><div class="tightdash"></div></td></tr>
> <tr><td width="30%">some nice text<!--<td width=15%></tr>-->
>
> -> only the second line (the dashes) span two columns, all the rest
> does
> not.
>
> Well, that is really important stuff :-).
>
> --
>
> Michael
>
> -----------------------------------------------------------
> http://www.jo-sac.ch - JO-SAC inoffiziell!
> http://www.herger.net/photo - mein kleines Photoalbum
>

mherger
2004-06-09, 14:05
> Opera was just assuming that since only one td field was being specified
> that the colspan was 1, but other browsers (I tested this with mozilla,
> IE, and Safari) were assuming it was the entire table. I set the
> colspan to 3 on each line and that fixed the problem.
>
> And closed the <tr>s. Not sure why I left that part commented, must
> have gotten sidetracked. :/
>
> Should look fine now.

It does. Thanks.

Michael


>> I don't know whether it's Opera badly displaying incorrect code or only
>> Opera interpreting bad code correctly :-).
>>
>> On http://www.slimdevices.com/dev_third_party.html the "Custom
>> installation and hardware mods" table does not span all columns in
>> opera.
>> In fact this might be due to the code (stripped here for legibility):
>>
>> <tr><td>Custom Installation and Hardware Mods</td></tr>
>> <tr><td colspan=2><div class="tightdash"></div></td></tr>
>> <tr><td width="30%">some nice text<!--<td width=15%></tr>-->
>>
>> -> only the second line (the dashes) span two columns, all the rest does
>> not.
>>
>> Well, that is really important stuff :-).

--

Michael

-----------------------------------------------------------
http://www.jo-sac.ch - JO-SAC inoffiziell!
http://www.herger.net/photo - mein kleines Photoalbum