3

I've got a custom style for sections of our specs:

p.SectionText { font-size:  12px; text-indent: 1.5em; padding-left: 5em;}

However, if I insert an ordered (or unordered) list within text blocks using that style, the list does not pick up the style, but instead adopts the body style. It looks like this is because FB closes the <p> tag before it inserts the list.

Question is...since the <ol>/<ul> doesn't belong (HTML-wise) to the styled section, how can I still apply that style to the list so that it matches the text section it visually belongs to?

(As a stop gap, I've add a CSS style for <ol>/<ul>, which applies globally.)

Fog Creek Case FC1863618

flag

1 Answer

3

As you said, the list can't be inside a paragraph, so I'm afraid there isn't a way to style it other than globally. Currently, when you select text in a list, you'll see that there isn't a style.

I have opened a case to implement the ability to define and apply styles for ol, ul and li tags in the wiki template css.

Upvote this question if you would like to see this feature.

link|flag
Styles for lists would be a great addition! – cdeszaq Mar 10 2010 at 21:31
Thanks Adam. I appreciate it. – jasonjwwilliams Mar 11 2010 at 22:52

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.