Hi Ref mails in August 2013 with theme "Ordered lists with numbers wrapped in '[' and ‘]’" that Chris Rockwell helped with. I have pasted the code and usage below.
I wrote his code and its usage etc. all down at this blog note chapter: http://www.teigfam.net/oyvind/home/technology/061-wordpress/#academic_style_reference_list (disclaimer: no money, no gifts, no ads, just a hobby) I have been using it ever since! However, now I would like to set, in a variable I assume, a constant value (for each chapter, by hand is ok), like this, for chapter 7: [7.1] Reference 1 in here [7.2] Reference 2 in here [7.3] Reference 3 in here [7.4] Reference 4 in here Like at this place: http://www.teigfam.net/oyvind/home/technology/157-my-wifi101-library-port/#4_resources - where I would like all to look like [4.n] (n counting) Any chance?-) Øyvind TEIG Trondheim Norway +47 959 615 06 oyvind.t...@teigfam.net http://www.teigfam.net/oyvind/home (Mac) - - - - Chris Rockwell’s code - - - - ol.ol_href { list-style-type: none; counter-reset: section; padding-left: 0; } ol.ol_href li { display: table-row } ol.ol_href li:before { counter-increment: section; content: "[" counter(section) "] "; padding-right: 1em; display: table-cell; } - - - - Chris Rockwell’s code, usage - - - - <ol class="ol_href"> <li id="Ref01">Reference 1 in here</li> <li id="Ref02">Reference 2 in here</li> <li id="Ref03">Reference 3 in here</li> <li id="Ref04">Reference 4 in here</li> </ol> ______________________________________________________________________ css-discuss [css-d@css-discuss.org] 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/