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're retiring the forums!

The SilverStripe forums have passed their heyday. They'll stick around, but will be read only. We'd encourage you to get involved in the community via the following channels instead:

Template Questions /

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

Different ul-Styles

Go to End

3 Posts   1822 Views


Community Member, 4 Posts

24 March 2011 at 3:56am


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?



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"



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 :(