Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

Template Questions /

Moderators: martimiz, Sean, Ed, biapar, Willr, Ingo, swaiba

Different ul-Styles


Go to End


3 Posts   2221 Views

Avatar
lemoony

Community Member, 4 Posts

24 March 2011 at 3:56am

Hi,

I'd like to have different styles for different sorts of unordered lists. Just adding something like

.list2 .ul {
width: 10em;
margin: 0; padding: 0.8em;
border: 1px solid black;
}

to typography.css doesn't work. The editor leaves the "list2" and only shows "ul". Also the text is insterted within a <p class="ul"> tag.

Any hints?

Thank's!!

Avatar
hammuh

Community Member, 15 Posts

24 March 2011 at 4:21am

Hi lemoony,

In your code the ul is a classname. Try ul.list2 and in your html ul class="list2"

Frank

Avatar
lemoony

Community Member, 4 Posts

24 March 2011 at 4:29am

Ah, thank's, that was silly.

But it still doesn't work properly - only by editing the html by hand... and I'd like the editor to do the work :(