Jump to:

3401 Posts in 979 Topics by 855 members

Template Questions

SilverStripe Forums » Template Questions » Different ul-Styles

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

Page: 1
Go to End
Author Topic: 1257 Views
  • lemoony
    Avatar
    Community Member
    4 Posts

    Different ul-Styles Link to this post

    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!!

  • hammuh
    Avatar
    Community Member
    15 Posts

    Re: Different ul-Styles Link to this post

    Hi lemoony,

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

    Frank

  • lemoony
    Avatar
    Community Member
    4 Posts

    Re: Different ul-Styles Link to this post

    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

    1257 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.