HighDots Forums  

Auto-number table rows?

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


Discuss Auto-number table rows? in the Cascading Style Sheets forum.



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

Default Auto-number table rows? - 09-02-2003 , 06:00 PM






Is it possible to auto-number rows of a table, similar to how <LI> is used
to number a series of lines?



Reply With Quote
  #2  
Old   
Thomas Scholz
 
Posts: n/a

Default Re: Auto-number table rows? - 09-02-2003 , 08:22 PM






Dave gestand:

Quote:
Is it possible to auto-number rows of a table, similar to how <LI> is
used to number a series of lines?
From one of my diagnostic user stylesheets:

tr:before {
content: counter(tr) !important;
counter-increment: tr !important;
padding: 0 3px !important;
display: table-cell !important;
}

But ... this works in Opera only.

Thomas


Reply With Quote
  #3  
Old   
Philipp Lenssen
 
Posts: n/a

Default Re: Auto-number table rows? - 09-03-2003 , 04:04 AM



Thomas Scholz wrote:

Quote:
Dave gestand:

Is it possible to auto-number rows of a table, similar to how <LI
is > used to number a series of lines?

From one of my diagnostic user stylesheets:

tr:before {
content: counter(tr) !important;
counter-increment: tr !important;
padding: 0 3px !important;
display: table-cell !important;
}

Looks very interesting.

To the original author, don't forget that CSS should be an optional
layout enhancement of the content presented as HTML. So if it's very
important to have the numbers show, CSS won't do the job. A numbered
<li> is a bit different in that respect because the <ol> is defined in
HTML.


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.