Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <title>::before { display: inline-block; }</title> |
michael@0 | 3 | <style> |
michael@0 | 4 | ul li { |
michael@0 | 5 | list-style-type: none; |
michael@0 | 6 | counter-increment: item; |
michael@0 | 7 | } |
michael@0 | 8 | ul li::before { |
michael@0 | 9 | content: counter(item); |
michael@0 | 10 | display: inline-block; |
michael@0 | 11 | width: 3em; |
michael@0 | 12 | } |
michael@0 | 13 | ul { |
michael@0 | 14 | margin-left: 3em; |
michael@0 | 15 | padding-left: 0; |
michael@0 | 16 | } |
michael@0 | 17 | </style> |
michael@0 | 18 | <ul> |
michael@0 | 19 | <li>Foo |
michael@0 | 20 | <li>Bar |
michael@0 | 21 | </ul> |