![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
To get bold numbers in ordered lists, one can write ol { font-weight: bold } ol span { font-weight: normal } ol li><span>......</span></li li><span>......</span></li /ol Is there a better way? |
#3
| |||
| |||
|
|
ol { counter-reset: item } ol li { display: block } ol li:before { content: counter(item) ". "; counter-increment: item; font-weight: bold; color: red; } |
#4
| |||
| |||
|
|
There is a perfectly good way that uses the semantic equivalent of an ordered list, a two column table, |
#5
| |||
| |||
|
|
I don't know what you mean by "semantic equivalent" - but I certainly cannot get automatic numbering in a table. content: counter(item) ": "; |
#6
| |||
| |||
|
|
On Mon, 25 Aug 2008, Jonathan N. Little wrote: I don't know what you mean by "semantic equivalent" - but I certainly cannot get automatic numbering in a table. content: counter(item) ": "; In which browser? |
#7
| |||
| |||
|
|
Andreas Prilop wrote: On Mon, 25 Aug 2008, Jonathan N. Little wrote: I don't know what you mean by "semantic equivalent" - but I certainly cannot get automatic numbering in a table. content: counter(item) ": "; In which browser? Oh, don't expect it to work in IE! Firefox, SeaMonkey, Opera... the browser must support css counters. |
#8
| |||
| |||
|
|
Jonathan N. Little wrote: Andreas Prilop wrote: On Mon, 25 Aug 2008, Jonathan N. Little wrote: I don't know what you mean by "semantic equivalent" - but I certainly cannot get automatic numbering in a table. content: counter(item) ": "; In which browser? Oh, don't expect it to work in IE! Firefox, SeaMonkey, Opera... the browser must support css counters. Also Konqueror 3.5.8 so I assume Safari will also work. |
#9
| |||
| |||
|
|
Also Konqueror 3.5.8 so I assume Safari will also work. |
#10
| |||
| |||
|
|
On Mon, 25 Aug 2008, Jonathan N. Little wrote: I don't know what you mean by "semantic equivalent" - but I certainly cannot get automatic numbering in a table. * * content: counter(item) ": "; In which browser? |
![]() |
| Thread Tools | |
| Display Modes | |
| |