SitePoint Sponsor

User Tag List

Results 1 to 4 of 4
  1. #1
    I am obstructing justice. bronze trophy fatnewt's Avatar
    Join Date
    Jul 2002
    Location
    Ottawa, Canada
    Posts
    1,766
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    <ol>'s start attribute

    The start attribute or the ordered list (ol) is being deprecated. According to w3schools.com, you should "use styles instead" - but as far as I can see, there is no available replacement in CSS.

    Is there another way to achieve its function? And doesn't the start attribute provide a semantic meaning that should be a part of a document's content - not style?
    Colin Temple [twitter: @cailean]
    Web Analyst at Napkyn


  2. #2
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    I believe you can still use the start attribute in Transitional flavors of HTML and XHTML. It's only in Strict where it's not allowed. The replacement is the various counter properties in CSS2, but those only work in Opera right now. Stick to Transitional and the start attribute if you want a reliable method of doing this.

  3. #3
    SitePoint Enthusiast
    Join Date
    Jan 2004
    Location
    Glasgow, Scotland
    Posts
    60
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You should use a <ul> rather than the <ol>, then use this style

    ul {
    list-style-type: decimal;
    }

    To change the bullet points to decimals. Using CSS you can choose form a wide range of bullet points including things like roman i ii iii iv v vi, or apha numerics like a b c d e. Here's the relelvant w3schools page http://www.w3schools.com/css/pr_list-style-type.asp

  4. #4
    ☆★☆★ silver trophy vgarcia's Avatar
    Join Date
    Jan 2002
    Location
    in transition
    Posts
    21,235
    Mentioned
    1 Post(s)
    Tagged
    1 Thread(s)
    Quote Originally Posted by Rincewind
    You should use a <ul> rather than the <ol>
    Why? If his content is structured such that the items in his list NEED to be ordered (for example, instructions for repairing a microwave), then why would he put it in an unordered list? Besides, ordered lists don't have to have numbers or letters either:
    Code:
    ol {
      list-style-type: disc;
    }


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
  •