Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums JavaScript looking for help

  • This topic is empty.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #34543
    Jasmine
    Member

    Hello every one, i am new here

    I have a problem now, I have a very long legal document to put on the web. That document should respect that format:

    TITLE
    1. ***
    TITLE
    2. ***
    TITLE
    3. ***
    * ***
    TITLE
    4. ***
    5.***
    * ***
    TITLE
    6. ***.
    * 6.1 ****;
    * 6.2****

    what I want is to use the ordered list and define the TITLE as H2 elements. so the problem I have is if I do this, I would have to rely on the deprecated element “start” and “value†which I would like to avoid. I could have use the counter-increment property but it doesn’t work in IE 6 and I need this page to be cross-browser compatible.
    so do you have any idea about it, could you help me, thank u :)

    #88142
    Mottie
    Member

    What you posted as deprecated elements is showing up garbled… and I can’t think of what you might mean there.

    On the other hand, I know this HTML won’t validate, but it works. Will it work for you?


      TITLE


    1. ***

    2. TITLE


    3. ***

    4. TITLE


    5. ***
      ***

    6. TITLE


    7. ***

    8. ***

    9. TITLE


    10. ***

      1. ***

      2. ***




    or if you need it to validate, it’s a bit more markup:

    TITLE



    1. ***



    TITLE



    1. ***



    TITLE



    1. ***
      ***



    TITLE



    1. ***

    2. ***



    TITLE



    1. ***

      1. ***

      2. ***



    #88187
    thomas
    Member

    Is there a reason it has to use ordered lists? The structure looks more like an outline than a list format.

    TITLE


    1. ***


    TITLE


    2. ***


    TITLE


    3. ***


    * ***


    TITLE


    4. ***


    5.***


    * ***


    TITLE


    6. ***.


    * 6.1 ****;


    * 6.2****

Viewing 3 posts - 1 through 3 (of 3 total)
  • The forum ‘JavaScript’ is closed to new topics and replies.