Jump to:

1367 Posts in 487 Topics by 521 members

Themes

SilverStripe Forums » Themes » Unordered lists not showing

Discuss SilverStripe Themes.

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

Page: 1
Go to End
Author Topic: 1010 Views
  • Eco
    Avatar
    Community Member
    15 Posts

    Unordered lists not showing Link to this post

    I am using the Paddygreen theme and noticed that any unordered lists in my content do not show up (no indent, no dots). The ordered list with the numbers works fine, but not the unordered list. I tried copying the typography for list styles from the Blackcandy theme but that didn't work.
    Anybody know how I can edit the theme to fix this?

  • Worp
    Avatar
    Community Member
    11 Posts

    Re: Unordered lists not showing Link to this post

    I am working on the same problem right now. Hoping to figure it out soon.
    Let me know if you find out anything helpful =)

  • Eco
    Avatar
    Community Member
    15 Posts

    Re: Unordered lists not showing Link to this post

    I figured it out after a bit of playing around. I added the following to the theme layout.css:

    #Main #Content ul {
       list-style: square inside;
       padding-left: 2em;
    }

    #Main #Content is the div where my lists appear. It may be different for yours.

    If you want to use a disc symbol instead of a square use:

    #Main #Content ul {
       list-style: disc inside;
       padding-left: 2em;
    }

  • Worp
    Avatar
    Community Member
    11 Posts

    Re: Unordered lists not showing Link to this post

    Thanks, i am going to try that out. Will post my results!

  • Worp
    Avatar
    Community Member
    11 Posts

    Re: Unordered lists not showing Link to this post

    It works =)

    Thanks, i was already figuring out that it must have had something to do with the css obviously, but didn't find the point where the <ul> tag was configured for the style. Of course i couldn't find it, cause it wasn't there...
    After adding it, as you said, it worked perfectly.

    Thx!

    1010 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.