[thelist] Netscape 6 and expandable table hack

Michael Stevens mike at tokenzone.com
Fri Jun 1 18:27:55 CDT 2001


<td nowrap> is your friend.  I can't believe I didn't think of it before!  I
made an appointment for Monday to finally have my head surgically removed
from my ass.

Thanks anyway guys.

M.

-----Original Message-----
From: thelist-admin at lists.evolt.org
[mailto:thelist-admin at lists.evolt.org]On Behalf Of Michael Stevens
Sent: Friday, June 01, 2001 5:46 PM
To: Evolt Mailinglist
Subject: [thelist] Netscape 6 and expandable table hack


Guys!!  I need ya help.

There is a common hack for making a table that has one expandable column
with other columns that appear to be static.  To achieve this you might code
something like this:

<table width="100%" cellpadding="0" cellspacing="0" border="0">
  <tr>
    <td width="1%"><img src="spacer.gif" height="5" width="150"</td>
    <td width="98%">Expandable column</td>
    <td width="1%"><img src="spacer.gif" height="5" width="150"</td>
  </tr>
</table>

Columns one and three are set to a width of 1% but the spacer gifs in those
cells are forcing them out to 150 pixels.  This leaves column two to
expand/contract as the browser window is resized.  I know this throws all
specs out the window (which, I'm sure, I'm having problems in Netscape 6)
but I need to achieve this effect some how because of the nature of the site
I'm working on.

The site basically needs to function like this:
-One platform
-One set of .jsp files
-Multiple instances displaying very different content in each.  Column two
from the above example will sometimes contain navigation images and
sometimes not and how many nav images it displays changes often.

The problem is this:
If column one is displaying only one image (like the example above) it works
fine in Nutscrape 6...it doesn't have much choice but to display 150 pixels
if that's what the image width is set to, right?  But as soon as one or more
images are added to column one, Netscape 6 (in all it's compliance glory)
just refuses to display anything after the first image...even if the <img>s
are butted together on one line with no spaces between them.  I even tried
leaving the width blank with no useful results.  I need the columns to close
around the images inside them.

Okay, okay...I was bad...I didn't follow specs and now I must pay...but I
have to have this kind of flexibility.  Do I have any other more "compliant"
options?

Any direction/advise will probably get me out of here much sooner tonight.

Thanks in advance,

Mike

p.s. Sorry if this shows up twice...some how Outlook started sending
messages in rtf format and drew a flag on the list server.


---------------------------------------
For unsubscribe and other options, including
the Tip Harvester and archive of TheList go to:
http://lists.evolt.org Workers of the Web, evolt !





More information about the thelist mailing list