Thanks! I'll have to test it this afternoon, as I'll have to put it into my sub "style.css". I tried it in the blog note, but Wordpress won't see that code as markup, only text.
However, I really want a separate class for it, that inherits from "ol", it could be called "ol_ref" or something. Could you please hold my hand on this one, too?-) Øyvind Fra: Chris Rockwell [mailto:[email protected]] Sendt: 13. august 2013 16:05 Til: Teig, Oyvind CCS Kopi: [email protected] Emne: [External] Re: [css-d] Ordered lists with numbers wrapped in '[' and ']' Check out https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Counters Something like this: ol { list-style-type: none; counter-reset: section; padding-left: 0; } li:before { counter-increment: section; content: "[" counter(section) "] "; padding-right: 1em; } On Tue, Aug 13, 2013 at 9:46 AM, Teig, Oyvind CCS <[email protected]<mailto:[email protected]>> wrote: I make "academic style" references that I would want to look like this: [1] Paper 1 [2] Paper 2 Here is an example, where I would like all numbers to be wrapped in [x]: http://www.teigfam.net/oyvind/home/technology/072-pike-sutter-concurrency-vs-concurrency/#References It's Wordpress. Med vennlig hilsen / Best regards Øyvind Teig Senior utviklingsingeniør, siv.ing. / Senior development engineer, M.Sc. __________________________________________ Autronica Fire and Security AS UTC CCS EMEA Fire & Security Operations Phone: + 47 73 58 24 68<tel:%2B%2047%2073%2058%2024%2068> / Mobile +47 959 61 506<tel:%2B47%20959%2061%20506> E-mail: [email protected]<mailto:[email protected]><mailto:[email protected]<mailto:[email protected]>> www.autronicafire.no<http://www.autronicafire.no><http://www.autronicafire.no> www.teigfam.net/oyvind/home/<http://www.teigfam.net/oyvind/home/><http://www.teigfam.net/oyvind/home/> (also work-related) ______________________________________________________________________ css-discuss [[email protected]<mailto:[email protected]>] 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://evolt.org> -- http://www.evolt.org/help_support_evolt/ -- Chris Rockwell ______________________________________________________________________ css-discuss [[email protected]] 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/
