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.

Themes /

Discuss SilverStripe Themes.

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

Unordered lists not showing


Go to End


5 Posts   1898 Views

Avatar
Eco

Community Member, 15 Posts

12 April 2011 at 10:55am

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?

Avatar
Worp

Community Member, 11 Posts

16 April 2011 at 3:50am

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

Avatar
Eco

Community Member, 15 Posts

17 April 2011 at 7:31am

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;
}

Avatar
Worp

Community Member, 11 Posts

22 April 2011 at 9:01am

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

Avatar
Worp

Community Member, 11 Posts

27 April 2011 at 8:11am

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!