html - Formatting an indented list in CSS -


Assume that I have a list with an arbitrary number of indentation levels, such as:

 < If I'm displaying this list in an HTML document, how can I use CSS to handle indentation? There may be an arbitrary number of indentation levels (though the practice is not going to be 5 or more). 

I do not want to create an "indent 1" square which is 10 pixels, an "indent 2" square that indents 20 pixels - what is clumsy is it possible to create a general rule , Which, on a specific value basis, indent on the basis of the position of an element in a particular value or hierarchy?

You will also do this:

More style and

  • gt; Elements do not have a bullet if you like.


  • Comments

    Popular posts from this blog

    windows - Heroku throws SQLITE3 Read only exception -

    lex - Building a lexical Analyzer in Java -

    python - rename keys in a dictionary -