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.

General Questions /

General questions about getting started with SilverStripe that don't fit in any of the categories above.

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

Using a ChildrenOf call causes the css to combust


Reply


4 Posts   946 Views

Avatar
breandano

Community Member, 7 Posts

31 March 2009 at 5:07am

Hi there,
I'm using 2 templates for a site im working on - Homepage, and Page, each of these templates has its own layout.css.

I'm using the ChildrenOf function, to display a menu on the hompage, with a list of pages from another part of the site;

this is working well, with one small issue - the pages are being listed on the menu, however, the default list style 'dot' is being added before each page link.

list-style:none; is not getting rid of the default listing scheme, im wondering if anyone has any solutions for this?

Thanks in advance

Breandan

Avatar
Willr

Forum Moderator, 5513 Posts

1 April 2009 at 4:55pm

Could you post your css. Make sure you are doing the list-style: none; on the li object (and not the ul object as some people do). Make sure your css file is being loaded on the site and also make sure your css rule isnt getting overridden

Avatar
banal

Community Member, 901 Posts

2 April 2009 at 7:23pm

Edited: 02/04/2009 7:24pm

AFAIK it's list-style-type:none you should use

Avatar
breandano

Community Member, 7 Posts

3 April 2009 at 12:19am

Hi Guys,

Thanks for getting back to me on such a trivial issue - list-style-type:none, did the trick, I'm off to buy a book on css:)

Breandan