[thelist] Inline CSS
Joshua Olson
joshua at waetech.com
Thu Oct 28 10:52:15 CDT 2004
> -----Original Message-----
> From: L. Mohan Arun
> Sent: Thursday, October 28, 2004 4:16 AM
>
> Is it possible to specify inline css for say a table, instead
> of repeating <FONT><SPAN>or <DIV> tags or placing the style
> info in stylesheets or in <HEAD>?
>
> For example, in the middle of an HTML file, can I say something like:
> TR {background-color:yellow; }
> TD { font-color:#ffffff; background-color:green; } and apply
> it only to the table immediately following it?
Mohan,
You can define special rules for TR's and TD's within specific tables using
the constructs of CSS. Here's an example:
<table id="oddball">
<tr><td> ... </td></tr>
<tr><td> ... </td></tr>
</table>
Because the table has an id, you can reference only it's TR's and TD's quite
easily in your CSS:
#oddball tr { ... }
#oddball td { ... }
Does this help?
<><><><><><><><><><>
Joshua Olson
Web Application Engineer
WAE Tech Inc.
http://www.waetech.com/service_areas/
706.210.0168
More information about the thelist
mailing list