Jump to:

22972 Posts in 11596 Topics by 2824 members

General Questions

SilverStripe Forums » General Questions » Using a ChildrenOf call causes the css to combust

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

Page: 1
Go to End
Author Topic: 835 Views
  • breandano
    Avatar
    Community Member
    7 Posts

    Using a ChildrenOf call causes the css to combust Link to this post

    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

  • Willr
    Avatar
    Forum Moderator
    5462 Posts

    Re: Using a ChildrenOf call causes the css to combust Link to this post

    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

  • banal
    Avatar
    Community Member
    901 Posts

    Re: Using a ChildrenOf call causes the css to combust Link to this post

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

  • breandano
    Avatar
    Community Member
    7 Posts

    Re: Using a ChildrenOf call causes the css to combust Link to this post

    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

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