Ordered list
- #1 in the list
- #2 in the list with subpoints
- subpoint a
- subpoint b
- #3 in the list with subpoints
- subpoint a
- subpoint b
- #4 in the list
- #5 in the list
- #6 in the list
![]() |
There are isolated problems with current patches, but they are well-known and documented on this site. |
SIGN IN | Not a member? | REGISTER | PLUS MEMBERSHIP |
Home » Forums » Testing Forum » Testing an ordered list with subpoints
Tags: O
I thought the critical problem was that I started out with open-square-bracket ol closing-square-bracket and they should have been angle brackets instead.
When I changed these two square brackets to angle brackets, I got the attached. But, I was expecting at an “a.” and a “b.”in the red squares, instead of “1.” and “2.”
I did not have a closing “li” where your 1st and 2nd horizontal arrows are. That was because I was putting an ordered list inside an unordered and so was doing this:
1. begin an unordered list
2. start an ordered list
3. put two items in the unordered list (starting and ending each one correctly)
4. end the ordered list
5. end the unordered list
So, using square brackets instead of angle brackets threw everything out of whack.
So, how do you get:
1. xxxx
2. xxxxx
a. xxxx
b. xxx
3. xxxx
a. xxxx
b. xxxx
4. xxxx
5. xxxx
Not that I am ever going to risk it again, but I am curious as to how it is done.
So, how do you get:
Manually. Some lists aren’t ordered lists; they are typed lists. Make sure you are in text mode.
1. Fe Fi Fo Fum
a. Yadda. Yadda. Yadda.
b. Oi. Oi. Oi.
2. By the pricking of my thumbs
a. Blah. Blah, Blah.
b. Yee Haw.
Go with the simple solution.
* Jack in the Beanstalk and Macbeth respectively.
I did not have a closing “li” where your 1st and 2nd horizontal arrows are. That was because I was putting an ordered list inside an unordered
The problem is the closing li does not close the list, it closes an item in a list and every item in a list must include the start li & close /li or the formatting of whole list is messed up… which is what happened to you!
The correct coding for an ordered list in an unordered list is:
ul - start unordered list li 1st unordered item /li li 2nd unordered item /li li 3rd unordered item /li ol - start ordered list li 1st ordered item /li li 2nd ordered item /li li 3rd ordered item /li /ol - end ordered list li 4th unordered item /li li 5th unordered item /li /ul - end unordered list
Which would appear like this:
Also, you need to use square brackets [] around the ul, ol, li, /ul, /ol and /li when posting to the forum because it uses bbcode. The greater than and less than symbols <> are used to create lists in HTML and shouldn’t be used here.
BTW, because the bbcode in use here on AskWoody doesn’t include provisions for changing the default characters used for lists the default character for “unordered” lists is always a square and “ordered” lists always use numbers.
In HTML it’s possible to change those so unordered lists use either a bullet, a circle, a square or nothing and ordered lists use either numbers, letters (upper or lower case) or Roman numerals (upper or lower case)
How did you get that grey box around the example?
I “selected” that section with my mouse and changed it from Paragraph to Preformatted.
That changes the font to monospaced (Courier New for my browser) Prevents long lines of text from wrapping. And results in scroll bars if needed to see all the text.
Just like how quotes get a “brownish” background to distinguish them from regular text, Preformatted sections get a “grayish” background.
Also, you need to use square brackets [] around the ul, ol, li, /ul, /ol and /li when posting to the forum because it uses bbcode. The greater than and less than symbols <> are used to create lists in HTML and shouldn’t be used here.
This confuses me … when I push the ol button in the message-box header, it is surrounded by angle brackets in the text message box and when I push it again, it is /ol surrounded by angle brackets. Same goes when you push the li button in the message-box header.
Same goes when you push the li button in the message-box header.
What li button are you referring to?
As for seeing angle brackets in the Text view box, I’ve always used the Visual view box and never realized that the HTML version of list commands appears when you do that.
Of course, the “built-in” list commands contained in the header at the top of the Visual view box don’t allow mixing of unordered/ordered lists so, if you want that type of list, you need to resort to manually creating it using the bbcode for lists in the Visual view (square brackets around the commands) or the HTML code for lists in the Text view (angle brackets around the commands.)
Regardless, as you found out, if you don’t get the coding “exactly right” (and lists aren’t easy to create manually), it will mess up the display of the whole thread!
Donations from Plus members keep this site going. You can identify the people who support AskWoody by the Plus badge on their avatars.
AskWoody Plus members not only get access to all of the contents of this site -- including Susan Bradley's frequently updated Patch Watch listing -- they also receive weekly AskWoody Plus Newsletters (formerly Windows Secrets Newsletter) and AskWoody Plus Alerts, emails when there are important breaking developments.
Welcome to our unique respite from the madness.
It's easy to post questions about Windows 11, Windows 10, Win8.1, Win7, Surface, Office, or browse through our Forums. Post anonymously or register for greater privileges. Keep it civil, please: Decorous Lounge rules strictly enforced. Questions? Contact Customer Support.
Want to Advertise in the free newsletter? How about a gift subscription in honor of a birthday? Send an email to sb@askwoody.com to ask how.
Mastodon profile for DefConPatch
Mastodon profile for AskWoody
Home • About • FAQ • Posts & Privacy • Forums • My Account
Register • Free Newsletter • Plus Membership • Gift Certificates • MS-DEFCON Alerts
Copyright ©2004-2023 by AskWoody Tech LLC. All Rights Reserved.