![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
II. A. 1) Is there a way to control outline indentation with CSS? |
#3
| |||
| |||
|
|
Looks more like a nested ordered list (ol). Use the CSS list-style-type property (upper-roman, upper-alpha, decimal). |
#4
| |||
| |||
|
|
I'm not sure what the "CSS list-style-type property" is. I'll do some research. |
|
So the challenge is not only controlling indentation, but also where the text wraps. |
#5
| |||
| |||
|
|
I'm not sure what the "CSS list-style-type property" is. I'll do some research. http://www.w3.org/TR/CSS2/ is the CSS specification. So the challenge is not only controlling indentation, but also where the text wraps. Look up text-indent (hint: it can have a negative value) while you're reading the spec. |
#6
| |||
| |||
|
|
Play around with the margin: and padding: properties on ol and li and you get the indentation. ol { list-style-type: XXX; } ol ol { list-style-type: YYY; } (...) Depending on where the balance between presentation and content in the numbering lies, you might use <ul> and list-style-type: none; and put the numbers in the <li> element content, rather than <ol>. |
#7
| |||
| |||
|
#8
| |||
| |||
|
|
#sidebar ol.1I { list-style:upper-roman outside; text-indent:-13px; padding-left:5px } #sidebar ol.2A { list-style:upper-alpha outside; } #sidebar ol.31 { list-style:decimal outside; } #sidebar ol.4a { list-style:lower-alpha outside; } #sidebar ol.5i { list-style:lower-roman outside; } closer, but the Roman Numerals and letters do not auto-generate |
#9
| |||
| |||
|
|
Can you put an example page up somewhere? However, I'd guess that the problem here is that class names can't start with a digit (see section 4.1.3 of the specification). You could rename the classes, but probably better is to do #sidebar ol /* was .1I */ {...} #sidebar ol ol /* was .2A */ {...} #sidebar ol ol ol /* was .31 */ {...} and so on, rather than using classes (which bloats the HTML and leaves room for errors labelling them). |
#10
| |||
| |||
|
| http://www.postpositive.org/wp03/index.php This is not bad... but I wish I could figure out how to auto-generate the letters. Also not sure how to handle subpoints under letters, and sub points under subpoints... |
|
How do I use <li> <li> and <ol> <ol> ?? |
![]() |
| Thread Tools | |
| Display Modes | |
| |