[thelist] <td bgcolor=clear> ?

John Bedard John.Bedard at trw.com
Fri Jul 27 10:50:14 CDT 2001


CSS is the obvious way to go, but if you need a solution for older browsers you might want to try something like this "oldschool approach" (if I'm understanding you correctly):

<body bgcolor="#FFFFFF" text="#000000" background="images/background.jpg">
<table width="80%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td colspan="3" bgcolor="#000000"><img src="images/blank.gif" height="2" width="1"></td>
  </tr>
  <tr>
    <td bgcolor="#000000" width="2"><img src="images/blank.gif" height="1" width="2"></td>
    <td width="99%">Content goes in here.</td>
    <td bgcolor="#000000" width="2"><img src="images/blank.gif" height="1" width="2"></td>
  </tr>
  <tr>
    <td colspan="3" bgcolor="#000000"><img src="images/blank.gif" height="2" width="1"></td>
  </tr>
</table>
</body>

Disclaimer: I haven't test this in older browsers. It works fine in IE5.5 but it also appears that in Netscape 4.75 the thicknesses of the borders are not consistent between the vertical and horizontal. Oh well, nevermind...

John
P.S. Maybe you could use CSS and just "accept" the fact that it won't look "perfect" in older browsers. That's what I would do.

>>> ckanderson at powersurfr.com 07/27/01 01:34AM >>>
Hey everyone.  I am re designing my site, and have a question about tables.
I am now using a background image, and have run into a little problem.

I have made a few tables within tables, so that I can get a black border
effect on my tables.  so basically, Im doing something like this:

<table border=0 width=100% cellpadding=0 cellspacing=0>
<tr bgcolor=000000><td>
    <table border=0 width=100% cellpadding=0 cellspacing=0>
    <tr><td bgcolor=FFFFFF>blablablablabbalbala</td></tr>
    </table>
</td></tr>
</table>

So anyway, the inside table has a white background, so I cant see my
background image anymore.  Is there any way to set it to be clear or
something?  I still want my background to show through.

Hope this makes sense :)

Christian Anderson
URL: http://www.photokyo.com 


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