[resolved] Removing indent of subcategories (2 posts)

  1. salli
    Posted 7 years ago #

    Please have a look at this image

    I'm using a collapsable menu and as you can see the subcategories have an indent. How do I remove this? I have tried the following code (see below), but it wouldn't work.

    #menu li {
    padding-left: 0px;
    margin-left: 0px;
    list-style-type: none;

    Unfortunately the topics I found on this forum regarding the same issue/subject wouldn't help. Can you help me out?

    Best regards,

  2. salli
    Posted 7 years ago #

    Hmmm, I managed to solve it with the following code:

    #menu li a {
    padding-left: 0px;
    margin-left: -10px;

    But I wonder why I needed to set the left margin at -10? Does anyone know why?

Topic Closed

This topic has been closed to new replies.

About this Topic