HighDots Forums  

Bold numbers in ordered lists

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


Discuss Bold numbers in ordered lists in the Cascading Style Sheets forum.



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

Default Bold numbers in ordered lists - 08-22-2008 , 10:14 AM






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?

--
In memoriam Alan J. Flavell
http://groups.google.com/groups/search?q=author:Alan.J.Flavell

Reply With Quote
  #2  
Old   
dorayme
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-22-2008 , 05:19 PM






In article
<Pine.GSO.4.63.0808221608080.15416 (AT) s5b004 (DOT) rrzn.uni-hannover.de>,
Andreas Prilop <prilop4321 (AT) trashmail (DOT) net> wrote:

Quote:
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?
There is a perfectly good way that uses the semantic equivalent of an
ordered list, a two column table, with which your requirement has a
simple solution.

--
dorayme


Reply With Quote
  #3  
Old   
Bergamot
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-22-2008 , 06:30 PM




Jonathan N. Little wrote:
Quote:
ol { counter-reset: item }
ol li { display: block }
ol li:before {
content: counter(item) ". ";
counter-increment: item;
font-weight: bold;
color: red;
}
Nice - and it degrades well for CSS deficient browsers, too.

--
Berg


Reply With Quote
  #4  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 10:19 AM



On Sat, 23 Aug 2008, dorayme wrote:

Quote:
There is a perfectly good way that uses the semantic equivalent of
an ordered list, a two column table,
I don't know what you mean by "semantic equivalent" - but I certainly
cannot get automatic numbering in a table.

--
Solipsists of the world - unite!


Reply With Quote
  #5  
Old   
Andreas Prilop
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 10:50 AM



On Mon, 25 Aug 2008, Jonathan N. Little wrote:

Quote:
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?


Reply With Quote
  #6  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 11:18 AM



Andreas Prilop wrote:
Quote:
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.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #7  
Old   
Jonathan N. Little
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 11:52 AM



Jonathan N. Little wrote:
Quote:
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.

--
Take care,

Jonathan
-------------------
LITTLE WORKS STUDIO
http://www.LittleWorksStudio.com


Reply With Quote
  #8  
Old   
Ed Mullen
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 02:02 PM



Jonathan N. Little wrote:
Quote:
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.

It does.

--
Ed Mullen
http://edmullen.net
I used to be schizophrenic, but we're all right now.


Reply With Quote
  #9  
Old   
Steve Swift
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 02:25 PM



Jonathan N. Little wrote:
Quote:
Also Konqueror 3.5.8 so I assume Safari will also work.
Certainly my Safari (Under Windows). Not IE8 beta though.

--
Steve Swift
http://www.swiftys.org.uk/swifty.html
http://www.ringers.org.uk


Reply With Quote
  #10  
Old   
Roy A.
 
Posts: n/a

Default Re: Bold numbers in ordered lists - 08-25-2008 , 02:47 PM



On 25 Aug, 16:50, Andreas Prilop <prilop4... (AT) trashmail (DOT) net> wrote:
Quote:
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?
Most, even on cellular phones.


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 - 2009, Jelsoft Enterprises Ltd.