multi-level combo lists?

This forum is for all Flare issues related to styles, stylesheets and XML.
Post Reply
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

multi-level combo lists?

Post by crdmerge »

[V7 Eval User]

We have many combo lists of the type:

1. Step 1
2. Step 2
....* Option bullet
....* Option bullet
......Figure or Table
3. Step 3
....Figure or Table
etc.

Users (and the Flare help) seem to be split between those who set style classes on the p tag (some with auto-numbering), others on the li tag. Has anyone had experience with a combo list of this type, and how was it done?

Thx
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: multi-level combo lists?

Post by LTinker68 »

Whether or not you can do the combo list is immaterial to which method you use to generate the list. If you want to use the HTML list option, then you can get the indented-paragraph-under-a-line-item effect by selecting the List Actions drop-down menu and selecting Make Paragraph Items. That turns the <li> tag into an <li> tag with a <p> child tag. When you press Enter, you get a second <p> tag that's a child of the <li> tag. It stays that way until you select Make Simple Item (I think that's the text for the menu option) and get back to a base <li> tag with no children.

Code-wise, it would look like:

Code: Select all

<ol>
<li>First line item</li>
<li><p>Second line item, first child paragraph</p>
     <p>Second line item, second child paragraph</p></li>
<li>Third line item</li>
</ol>
If you go with the custom paragraph option, then you're just switching from the paragraph class with the auto-number format to another paragraph class that doesn't have auto-numbering but is indented.

Code-wise, it would look something like:

Code: Select all

<p class="listFirstItem">First line item</p>
<p class="listContinueItem">Second line item</p>
<p class="listNoteIndented">Indented paragraph with no numbering</p>
<p class="listContinueItem">Third line item</p>
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: multi-level combo lists?

Post by crdmerge »

Oh, THAT'S what Make Paragraph Items(s) means: not the item you're in, but the item(s) you're about to create! :idea:

One other little thing: why do Bullet List and Circle Bullet List both appear as bullets? :?


Thx,
Leon
LTinker68
Master Propellus Maximus
Posts: 7247
Joined: Thu Feb 16, 2006 9:38 pm

Re: multi-level combo lists?

Post by LTinker68 »

crdmerge wrote:One other little thing: why do Bullet List and Circle Bullet List both appear as bullets?
Not sure what you mean by they appear as bullets. Bullet list appears as a filled-in circle and Circle bullet list appears as an empty circle (i.e., just the outline). Are you saying they appear the same? Is that in the XML Editor or the output?

The default style for the <li> tag when it's in the <ul> tag is the filled circle (bullet list). However, you can override that in the stylesheet using complex selectors. If you leave it with the default then select the circle bullet list in the list menu, then an inline style is added to the li tag that specifies that it be a circle style of bullet.

Note also that not all browsers display bullet types the same way. For instance, one browser's default bullet style might be a filled circle and another browser's default style might be a filled diamond. To have the browsers use the same bullet style type, you'd have to explicitly define it in the stylesheet.
Image

Lisa
Eagles may soar, but weasels aren't sucked into jet engines.
Warning! Loose nut behind the keyboard.
crdmerge
Sr. Propeller Head
Posts: 248
Joined: Tue Dec 16, 2008 5:37 am

Re: multi-level combo lists?

Post by crdmerge »

Yeah, all black.

I'll have to use combinations of css styles, using both descendant and direct child selectors (ol ul li, ol > ul > li, etc.), once I've figured out exactly how many specifc combinations we're currently using. That is, some combos will use the black disc, whereas others might use circles, or both? Sigh...


Thx again,
Leon
Post Reply