I need to apply Styles to ol and ul elements. The problems seems to be that selecting the items in the list doesn't select the ol's and ul's. Example:
<<begin
This is some text that goes here
Item 1
Item 2
Item 3
More text here
<<end
So I typed that out, then selected my 3 items, click the ordered list toolbar button, then select from my styles dropdown the one defined in my fckstyles.xml
<Style name="My Numbered List" element="ol">
<Attribute name="class" value="my-bullet-list" />
</Style>
When selecting my customer style, an additional <ol class="my-bullet-list"> gets entered. I know fck is capable as just typing
<<begin
Item 1
Item 2
Item 3
<<end
<Control-A> then ordered list then <Control-A> again then selected my style, this works.
Any ideas?
Thanks
Chad
<<begin
This is some text that goes here
Item 1
Item 2
Item 3
More text here
<<end
So I typed that out, then selected my 3 items, click the ordered list toolbar button, then select from my styles dropdown the one defined in my fckstyles.xml
<Style name="My Numbered List" element="ol">
<Attribute name="class" value="my-bullet-list" />
</Style>
When selecting my customer style, an additional <ol class="my-bullet-list"> gets entered. I know fck is capable as just typing
<<begin
Item 1
Item 2
Item 3
<<end
<Control-A> then ordered list then <Control-A> again then selected my style, this works.
Any ideas?
Thanks
Chad
RE: Applying Styles to List (ol & ul)
Re: Applying Styles to List (ol & ul)
in my custom styles i defined:
and in the .css:
But the style "ul.white" does not show up in the style selection.
... except, when i somehow manage to double click somewhere between the bullets of a list, such that the whole list is selected. -> the <ul> is the selected object then and the style shows up.
So maybe this is kind of a solution to your problem. But I'd be happy if there's a more elegant way to set the lists' style.
Any ideas?