If the html code is "<td class="NotesColumnStyle">", then the td is of class
"NotesColumnStyle", and the css selector has to be td.NotesColumnStyle.

You wrote ".NotesColumnStyle td". That selector would select any td element
that is inside any element of class "NotesColumnStyle".

Best regards,

Christian Kirchhoff

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Brian Ogden
> Sent: Friday, April 18, 2008 7:39 PM
> To: css-d@lists.css-discuss.org
> Subject: [css-d] Override Style Class in a Child <TD> Element
> 
> 
> I am displaying tabular data and for a give row of data I 
> have a <tr class="RowStyle"> element and than a <td> element 
> for each of my columns. There is specific <td> that I want to 
> have a class of its own and override the RowStyle class by 
> saying <td class="NotesColumnStyle">. This is my CSS:
> 
> /*RowStyles*/
> .RowStyle td, .AltRowStyle td, .SelectedRowStyle td, 
> .EditRowStyle td /*Common Styles*/ {
>     padding: 5px;
>     border-right: solid 1px #1d1d1d;
>     font-weight:bold;
> }
> 
> .NotesColumnStyle td
> {
>     overflow: scroll;
>     width:30px;
>     height:20px;
>     background-color:Aqua;
> }
> 
> Right now the RowStyle class is overriding or covering the 
> NotesColumnStyle class styles.
> 
> Thanks you all!! 
> ______________________________________________________________________
> css-discuss [EMAIL PROTECTED] 
> http://www.css-discuss.org/mailman/listinfo/css-d
> List wiki/FAQ -- http://css-discuss.incutio.com/
> List policies -- http://css-discuss.org/policies.html
> Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

______________________________________________________________________
css-discuss [EMAIL PROTECTED]
http://www.css-discuss.org/mailman/listinfo/css-d
List wiki/FAQ -- http://css-discuss.incutio.com/
List policies -- http://css-discuss.org/policies.html
Supported by evolt.org -- http://www.evolt.org/help_support_evolt/

Reply via email to