Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6788165
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T17:27:09+00:00 2026-05-26T17:27:09+00:00

Is there any way in HTML/CSS to format a legal document that needs to

  • 0

Is there any way in HTML/CSS to format a legal document that needs to stay the same as the original document format. In other words.

  1. Main heading

    1.1 Sub Heading

    1.2 Sub Heading

    1.3 Sub Heading

    1.3.1 Sub Sub Heading
    
    1.3.2 Sub Sub Heading
    

    1.4 Sub Heading

  2. Main Heading

    2.1 Sub Heading

etc… etc…

I know that you can use nested OL’s but this does not render what I need as above

EDIT

Of course this is wonderful until IE popped its ugly head! (I have to wonder to myself what the developers over at Microsoft must think about the millions of complaints about their product.) I found this solution http://www.sitepoint.com/techy-treasures-5-fudging-css-counters-in-internet-explorer/ and have tried implementing it.

It works partly, but I have no idea how to use this expression correctly:

  #css-counters-test li  
  {  
     zoom: expression(  
      (typeof step == "undefined" ? step = 1 : step++),  
      this.innerHTML = (typeof this.processed == "undefined"  
            ? ("<span class=before>" + step + ": </span>")  
            : "")  
        + this.innerHTML,  
      this.processed = true,  
      this.runtimeStyle.zoom = "1"  
      );  
  }
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T17:27:09+00:00Added an answer on May 26, 2026 at 5:27 pm

    For this type of functionality you can use counter-increment property check this:

    HTML

    <ol>
      <li>item 1
        <ol>
          <li>sub item 1
            <ol>
              <li>sub-sub item 1</li>
              <li>sub-sub item 2</li>
              <li>sub-sub item 3</li>
            </ol>
          </li>
          <li>Sub item 2</li>
       </ol>
      </li>
      <li>item 2</li>
    </ol>
    

    CSS

    ol {
      counter-reset: section;
      list-style-type: none;
    }
    ol ol ol{background:#c0c0c0; padding-left:10px;}       
    ol li { counter-increment: section; }
    
    ol li:before  { content: counters(section, ".") ". "; }
    

    An live example using this property can be found here

    Related reading from the Opera dev site

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is there any way to theme an HTML table (CSS) with using the jQuery
Is there any good way of truncating text with plain HTML and CSS, so
Is there any way to suppress the default js and css loaded by application.html.erb
Is there any way to split a long string of HTML after N words?
I am generating a document from HTML. Is there any way to force the
Is there any way that I can use just HMTL and CSS to force
Is there any way to force Outlook to display HTML in the desktop alert
Is there any way to embed Flash completely in HTML, without reference to an
Is there any way to set the HTTP header fields of a HTML form
Is there any way to write a valid header/link/image? Something like <a href=index.html><h1 id=logo>Company

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.