Board index » Web Programming » applying a CSS class to all cells within a table

applying a CSS class to all cells within a table

Web Programming10
Is there a way of specifying the CSS class of all cells within a table

without having to set the class attribute for each cell individually

(server-side or client-side)?



Paul


-
 

Re:applying a CSS class to all cells within a table

See :

www.w3.org/TR/REC-CSS2/selector.html">www.w3.org/TR/REC-CSS2/selector.html

(note that other selectors are not necessarily supported in IE6 and

earlier).



For example a selector such as "table.myclass td" allows to define a style

for all td tags that are inside a table whose class name is "myclass".



---

Patrice



"PJ6" <noone@nowhere.net>a écrit dans le message de news:

uGBRVs5dHHA.284@TK2MSFTNGP05.phx.gbl...

Quote
Is there a way of specifying the CSS class of all cells within a table

without having to set the class attribute for each cell individually

(server-side or client-side)?



Paul







-

Re:applying a CSS class to all cells within a table

Wow, perfect. Thank you.



Paul



"Patrice" <www.chez.com/scribe/>">www.chez.com/scribe/> wrote in message

Quote
See :

www.w3.org/TR/REC-CSS2/selector.html">www.w3.org/TR/REC-CSS2/selector.html

(note that other selectors are not necessarily supported in IE6 and

earlier).



For example a selector such as "table.myclass td" allows to define a style

for all td tags that are inside a table whose class name is "myclass".



---

Patrice



"PJ6" <noone@nowhere.net>a écrit dans le message de news:

uGBRVs5dHHA.284@TK2MSFTNGP05.phx.gbl...

>Is there a way of specifying the CSS class of all cells within a table

>without having to set the class attribute for each cell individually

>(server-side or client-side)?

>

>Paul

>









-