how to format numbers in an ordered list

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Dave

    how to format numbers in an ordered list

    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
  • brucie

    #2
    Re: how to format numbers in an ordered list

    In comp.infosystem s.www.authoring.stylesheets Dave said:
    [color=blue]
    > Hi,[/color]

    g'day
    [color=blue]
    > * can the numbers of the ol list (the numbers themselves only) be set to be bold?[/color]

    yes
    [color=blue]
    > * can they be set to be a different colour from the default text colour set
    > elsewhere in the style sheet?[/color]

    yes
    [color=blue]
    > * can they be set to be a different font from the default font?[/color]

    yes

    <style type="text/css">
    ol li{font:bold 110% monospace;color :red;}
    li p{font:normal 100% sans-serif;color:gre en;}
    </style>

    <ol>
    <li><p>blah</p></li>
    <li><p>blah</p></li>
    </ol>


    --


    v o i c e s

    Comment

    • Neal

      #3
      Re: how to format numbers in an ordered list

      On 12 Oct 2004 06:09:29 -0700, Dave <zeitsparer@yah oo.com.au> wrote:
      [color=blue]
      > 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[/color]

      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>

      Comment

      Working...