[thelist] CSS to replace TD bgcolor

Chris Price chris.price at stl.org
Wed Jul 17 09:55:01 CDT 2002


Otherwise (if you don't want that background colour to be the default):
<style>
.setbgColor { background-color:#E1DEEB; }
</style>

<td class="setbgColor">
--
Chris, STL
> ----------
> From: 	Paul Backhouse
> Reply To: 	thelist at lists.evolt.org
> Sent: 	Wednesday, July 17, 2002 15:42 PM
> To: 	thelist at lists.evolt.org
> Subject: 	RE: [thelist] CSS to replace TD bgcolor
>
> td{
> 	background-color:#FFFFFF;
> }
>
> -----Original Message-----
>
> Quick question, since I'm not as well up yet on CSS as I'd like to be.
>
> Is there something I can do in a style sheet so that instead of
>
> <TD BGCOLOR=#E1DEEB>
>
> I can have <TD class="aa"> ?
>
> (I have a complex, frequently used page to do. Since it's so frequently
> used, it's important that the code be as lean as possible, and I'd like to
> be able to save those five characters, especially as this code appears
> multiple times.)
>
> Cheers,
> Drew.

_____________________________________________________________________
This message has been checked for all known viruses by UUNET delivered
through the MessageLabs Virus Control Centre. For further information visit
http://www.uk.uu.net/products/security/virus/



More information about the thelist mailing list