HighDots Forums  

how to format numbers in an ordered list

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


Discuss how to format numbers in an ordered list in the Cascading Style Sheets forum.



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

Default how to format numbers in an ordered list - 10-12-2004 , 08:09 AM






Hi,
* can the numbers of the ol list (the numbers themselves only) be set to be bold?
* can they be set to be a different colour from the default text colour set
elsewhere in the style sheet?
* can they be set to be a different font from the default font?

Thanks
Dave

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

Default Re: how to format numbers in an ordered list - 10-12-2004 , 08:23 AM






On 12 Oct 2004 06:09:29 -0700, Dave <zeitsparer (AT) yahoo (DOT) com.au> wrote:

Quote:
Hi,
* can the numbers of the ol list (the numbers themselves only) be set to
be bold?
* can they be set to be a different colour from the default text colour
set
elsewhere in the style sheet?
* can they be set to be a different font from the default font?

Thanks
Dave
It's a little tricky, but here's what you do.

ol {font-weight: bold; color: green;}
span {font-weight: normal; color: red;}

<ol>
<li><span>One</span></li>
<li><span>Two</span></li>
</ol>


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