SitePoint Sponsor

User Tag List

Results 1 to 3 of 3

Thread: Ordered list

  1. #1
    SitePoint Wizard
    Join Date
    Aug 2002
    Location
    N.Ireland
    Posts
    1,046
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Ordered list

    I putting a page together with an ordered list which has legislation with numbered paragraphs. Everything was fine until I realised the numbering goes 1,2,3,3a,4,5

    What would be the easiest way to get "3a" to display at the appropriate para using a list?

  2. #2
    SitePoint Enthusiast
    Join Date
    Sep 2003
    Location
    the Netherlands
    Posts
    74
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    There is no way to show "3a" with pure CSS, but you can add a child-list that will show just "a". So you'd get item 3, section a.

    1
    2
    3
    -a
    4
    5
    Danny Bessems - Online-Roleplaying.commodities

    So You've Won The Argument; That Doesn't Mean You're Right!

  3. #3
    SitePoint Zealot
    Join Date
    Jan 2004
    Location
    Holland
    Posts
    141
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Generated content

    Actually, CSS 2 revision 1 does offer those possibilities with generated content and counters; support among browsers unfortunately is schetchy, if existent at all. You'll have to be patient for a while...
    Regards,
    Ronald.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •