HighDots Forums  

Re: CSS: rule for the style of a table including its rows and cells?

Cascading Style Sheets Layout/presentation on the WWW (comp.infosystems.www.authoring.stylesheets)


Discuss Re: CSS: rule for the style of a table including its rows and cells? in the Cascading Style Sheets forum.



Reply
 
Thread Tools Display Modes
  #1  
Old   
David Dorward
 
Posts: n/a

Default Re: CSS: rule for the style of a table including its rows and cells? - 09-17-2003 , 10:17 AM






Chris John Jordan wrote:

Quote:
table, tr, td, th { /* properties: values */ }

Thanks, but TMK that applies to all tables - it may not be invoke for
'/a/' table.
table#foo, table#foo tr, table#foo td, table#foo th {}

--
David Dorward http://dorward.me.uk/


Reply With Quote
  #2  
Old   
Chris John Jordan
 
Posts: n/a

Default Re: CSS: rule for the style of a table including its rows and cells? - 09-18-2003 , 02:59 PM






David Dorward <dorward (AT) yahoo (DOT) com> wrote:
Quote:
Chris John Jordan wrote:

table, tr, td, th { /* properties: values */ }

Thanks, but TMK that applies to all tables - it may not be invoke for
'/a/' table.

table#foo, table#foo tr, table#foo td, table#foo th {}
Thanks, but IIUC that does not let me invoke for just the table e.g.

<table class=mycompletetablestyle>
<tr><td>A</td><td>B</td></tr>
<tr><td>C</td><td>D</td></tr>
</table>

but instead requires me to invoke for all the elements.
--
Chris


Reply With Quote
  #3  
Old   
David Dorward
 
Posts: n/a

Default Re: CSS: rule for the style of a table including its rows and cells? - 09-18-2003 , 04:13 PM



Chris John Jordan wrote:

Quote:
table#foo, table#foo tr, table#foo td, table#foo th {}

Thanks, but IIUC that does not let me invoke for just the table e.g.

table class=mycompletetablestyle
No, that would be using ".mycompletetablestyle" rather then "#foo" in each
of the above.

--
David Dorward http://dorward.me.uk/


Reply With Quote
  #4  
Old   
Erik Funkenbusch
 
Posts: n/a

Default Re: CSS: rule for the style of a table including its rows and cells? - 09-18-2003 , 07:13 PM



On Thu, 18 Sep 2003 19:59:57 +0100, Chris John Jordan wrote:

Quote:
David Dorward <dorward (AT) yahoo (DOT) com> wrote:
Chris John Jordan wrote:

table, tr, td, th { /* properties: values */ }

Thanks, but TMK that applies to all tables - it may not be invoke for
'/a/' table.

table#foo, table#foo tr, table#foo td, table#foo th {}

Thanks, but IIUC that does not let me invoke for just the table e.g.

table class=mycompletetablestyle
tr><td>A</td><td>B</td></tr
tr><td>C</td><td>D</td></tr
/table

but instead requires me to invoke for all the elements.
No, it works for all elements defined in your stylesheet.

<table id="foo">
<tr><td>A</td><td>B</td></tr>
<tr><td>C</td><td>D</td></tr>
</table>

all elements would have the styles applied. Because you speficied
"table#foo tr" rather than "tr#foo" then any tr child of table#foo gets the
style.


Reply With Quote
Reply




Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.