Results 1 to 3 of 3

Thread: No good CSS replacement for HTML start=

  1. #1
    Site Contributor KLB's Avatar
    Join Date
    Feb 2006
    Location
    Saco Maine
    Posts
    1,181

    Angry No good CSS replacement for HTML start=

    Okay, I was doing some fine tuning on my site today and randomly pulled an older page to validate in HTML and CSS. I validate to HTML4.01 Strict and the page in question had ordered lists (<OL>) on it that were using the "TYPE" and "START" attributes. Much to my chagrin, I discovered that both attributes had been depreciated and were not valid for HTML4.01 Strict.

    Replacing the Type attribute was easy enough in that I created some CSS classes that replaced the TYPE attribute with CSS style "list-style-type". After some quick search and replaces, I had the type attribute swapped out for the new CSS classes.

    The sticking point came with the START attribute. I discovered there is absolutely no easy or straight forward CSS replacement for the HTML START attribute. Furthermore the START attribute isn't a display element, it is a structural element and it actually belongs in the HTML source, not in a CSS file.

    There is a really convoluted work around using the style "counter-reset", but this requires a whole series of CSS instructions and basically has a whole mess of undesirable side effects, which then have to be addressed.

    I find it absolutely amazing that the intelligent people over at the W3C could depreciate out an attribute like START and then not provide a straight forward CSS replacement for it. This is completely illogical.

    As a result of this boneheaded move by W3C, I now have three web pages that can not be made to validate to HTML4.01 Strict without jumping through a mess of obscene hoops.
    Ken Barbalace - EnvironmentalChemistry.com (Environmental Careers, Blog)
    InternetSAR.org: Volunteers Assisting Search and Rescue via the Internet
    My Firefox Theme Classic Compact: Based onFirefox's classic theme but uses much less window space

  2. #2
    Is Still Alive! Johnny Gulag's Avatar
    Join Date
    Feb 2006
    Location
    North Texas
    Posts
    242
    It's removal from the HTML4 specification is considered a bug (so I read) I would just use: <ol start="#"> and not worry about it validating.

  3. #3
    Site Contributor KLB's Avatar
    Join Date
    Feb 2006
    Location
    Saco Maine
    Posts
    1,181
    Quote Originally Posted by Johnny Gulag View Post
    I would just use: <ol start="#"> and not worry about it validating.
    That is exactly what I decided to do.
    Ken Barbalace - EnvironmentalChemistry.com (Environmental Careers, Blog)
    InternetSAR.org: Volunteers Assisting Search and Rescue via the Internet
    My Firefox Theme Classic Compact: Based onFirefox's classic theme but uses much less window space

Similar Threads

  1. help me come up with a good domain
    By Cloughie in forum Domain Names
    Replies: 2
    Last Post: 11-30-2007, 02:41 AM
  2. Links to possible rival sites in article - good or bad
    By fonzerelli_79 in forum Search Engine Optimization
    Replies: 7
    Last Post: 10-14-2006, 10:23 PM
  3. How to choose good web hosting company?
    By etech-martin in forum Web Hosting & Servers
    Replies: 5
    Last Post: 11-23-2005, 12:38 PM
  4. Reseller Accounts - the good, the bad & the ugly
    By Pulse in forum Web Hosting & Servers
    Replies: 12
    Last Post: 10-14-2005, 01:36 PM
  5. Good Places to Submit Articles
    By Doug in forum General Promotion
    Replies: 9
    Last Post: 07-28-2005, 05:16 PM

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
  •