Latest Lists

How do I indent an entire ordered list in html?

I have an ordered list that I wish to indent 3 cm. I tried some css but it will only indent headings and paragraphs but leaves the list unaffected. If you use "ol" as the tag to indent, it indents the text but not the 1., 2., 3.

Public Comments

  1. one way is to put the entire ordered list inside a table, then indent the table.
  2. You can also put it in <blockquote> assuming your CSS is set up to detect them correctly
  3. Considering everything is working as it should (<li>s properly nested in one <ol>); use the margin-left property on your ol or li element selector. Do not use the text-indent property for this. If you follow up with a snippet of your html code, I can provide you with the css to achieve what you desire.
Powered by Yahoo! Answers