4/5/2024 0 Comments Create multilevel list![]() You already have an ol style in your stylesheet, so you can edit this style. To do this, you need to create (or edit) three different styles: the ol style, the ol ol advanced selector (for tags residing inside another tag), and the ol ol ol advanced selector (for tags residing inside two other tags). You want to add an advanced selector so each level of the list will use a different style. For example, in the "ol ul ol ol" advanced selector, a numbered list is used for the first, third, and fourth levels, and a bulleted list is used for the second level.Įxample Here is an example of a multi-level ordered list. It could also be a combination numbered and bulleted list. For example, you could create a multi-level numbered list that uses a regular number in bold for the first-level ol, a lower-alpha number in italics for the second-level ol (i.e., the "ol ol" advanced selector), and a lower-Roman number for the third-level ol (i.e., the "ol ol ol" advanced selector). You can use advanced selectors when creating lists to automatically use different styles for each level in a multi-level list. In this example, the font weight of the dt style is bold, and the dd style is indented by 20 pixels.Īn advanced (or "complex") selector lets you format content based on very specific criteria. Here is how the tag structure for that definition list might look behind the scenes. Example Here is a sample definition list.Ī game with large men crashing into each other.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |