Apply classes and IDs to unordered lists

How can I apply IDs and classes to unordered lists in FW

What I want to achieve is

<ul id="myID">
<ul class="someclass">

Not necessarily on the same ul

David


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

You can’t. But you can work around it by wrapping your list in a DIV, and then using that DIV’s ID in a compound selector like #yourDiv ul. Weaver wrote an Action that allows you to add classnames to individual list items:

http://www.actionsforge.com/actions/view/122-list-item-styler

Walter


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter - that action is just what I am looking for.

I did have it, I just didn’t know I needed it until now.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

OK - next question

FW produces this

ul class="f-fp f-lp">

Can you explain what this really means in FW

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Sure. f-fp means First Paragraph (which gets top-margin:0) and f-lp
means Last Paragraph (which gets bottom-margin:0). Usually these get
applied to the P tags inside a DIV, so the measurements you set for
padding will work predictably. I suppose the same thing is being done
to the UL, for the same reason.

Remember you can add as many classes to an object as you like, in a
space-delimited list inside the class attribute. They apply in order,
so if you added another class later in the list that reset the
margins, it would apply without the need for !important or any other
hacks.

Walter

On Feb 13, 2011, at 9:27 PM, DeltaDave wrote:

OK - next question

FW produces this

ul class="f-fp f-lp">

Can you explain what this really means in FW

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options

Thanks Walter - I will get the hang of this eventually.

D


freewaytalk mailing list
email@hidden
Update your subscriptions at:
http://freewaytalk.net/person/options