[thelist] Styling Tables with CSS

Chris Brody subscriptions at cbrody.com
Thu Jul 24 08:59:26 CDT 2003


Ben Morrison wrote:

> Im having trouble styling the rows with css, ive been googling, tried
> applying class="mystyle" to the tr element etc but not with much luck.
>
> Can anyone point me to a good example/tute on styling tables with css.

It's possible that styles you have defined for sub-elements (td, p) are
overriding the style you're applying to the tr, but without seeing your code
it's difficult to know what's happening.

Some examples of css-styled tables:
http://www.iied.org/sarl/dow/uganda/chapter11.html

The main css file is:
http://www.iied.org/sarl/dow/dow.css


HTH.

--Chris.
www.cbrody.com



More information about the thelist mailing list