![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
|
Chris John Jordan wrote: David Dorward <dorward (AT) yahoo (DOT) com> wrote: table, tr, td, th { /* properties: values */ } Thanks, but TMK that applies to all tables - it may not be invoke for '/a/' table. table.special, table.special > tr, table.special > tr > th, table.special > tr > td, table.special > thead > tr, table.special > tbody > tr, table.special > thead > tr > th, table.special > tbody > tr > td { /* properties you want to apply */ } However, note that MSIE doesn't support child selector ">" |
|
E so you may need to drop those. |
|
In that case every tr, td and th inside possible nested tables will be selected too, which is not what you want. |
#2
| |||
| |||
|
|
Mikko Rantalainen <mira (AT) st (DOT) jyu.fi> wrote: Chris John Jordan wrote: David Dorward <dorward (AT) yahoo (DOT) com> wrote: table, tr, td, th { /* properties: values */ } Thanks, but TMK that applies to all tables - it may not be invoke for '/a/' table. table.special, table.special > tr, table.special > tr > th, table.special > tr > td, table.special > thead > tr, table.special > tbody > tr, table.special > thead > tr > th, table.special > tbody > tr > td { /* properties you want to apply */ } However, note that MSIE doesn't support child selector ">" Ah. I do need the solution to be MSIE compatible E so you may need to drop those. Sorry to be thick, but how exactly? What I want is something that will allow: ??? { properties for mycompletetablestyle table } ??? { properties for mycompletetablestyle table's tr } ??? { properties for mycompletetablestyle table's tr's td } |
|
table class=mycompletetablestyle tr><td>A</td><td>B</td></tr tr><td>C</td><td>D</td></tr /table In that case every tr, td and th inside possible nested tables will be selected too, which is not what you want. I can accept that, since I'm happy to mark style on each table, including the child tables. |
#3
| |||
| |||
|
|
Sorry to be thick, but how exactly? What I want is something that will allow: ??? { properties for mycompletetablestyle table } ??? { properties for mycompletetablestyle table's tr } ??? { properties for mycompletetablestyle table's tr's td } |
![]() |
| Thread Tools | |
| Display Modes | |
| |