I want to add some style to a drop-down box in the way that some options are highlighted (e.g. headlines, etc.). Just to give some structure.
While it was easy to add general styles (used the “Form Element CSS” action from Paul Dunning at Form Element CSS - ActionsForge for this purpose) I can’t find a way to modify the style of each single option.
My idea is to create some CSS classes I can assign to the options, e.g.
Text
Default style from Form Element CSS
Text
However Freeway doesn’t offer to manually add code to the options. Not sure how to proceed, so I’m looking forward to get some hints from your side
You could use JavaScript to target individual options based on their
value, but no, there’s no way to do this in Freeway. The other thing
to realize is that this styling will probably be wildly variable or
even nonexistent, depending on the browser.
Walter
On Mar 14, 2010, at 11:34 AM, “tobiaseichner” email@hidden wrote:
I want to add some style to a drop-down box in the way that some
options are highlighted (e.g. headlines, etc.). Just to give some
structure.
While it was easy to add general styles (used the “Form Element CSS”
action from Paul Dunning at Form Element CSS - ActionsForge
for this purpose) I can’t find a way to modify the style of each
single option.
My idea is to create some CSS classes I can assign to the options,
e.g.
Text
Default style from Form Element CSS
Text
However Freeway doesn’t offer to manually add code to the options.
Not sure how to proceed, so I’m looking forward to get some hints
from your side
Thanks for your hints… maybe this is a solution (based upon the options’ values), but I think that this is too time consuming for that one drop-down box.
Regarding browser compatibility, I gave it a short test on all recent browsers and found that it is widely supported (e.g. Safari does not show text background colours). At least the content stays readable.