BuddyDev

Search

[Resolved] Why are menu items pr default listed with dots?

  • Participant
    Level: Guru
    Posts: 995
    calu on #28402

    Hi there, I’m have inserted this code <?php bp_get_displayed_user_nav(); ?>from the Members Navigation Menus under buddypress.org, and I wonder why the menu items pr default are listed with dots?

    https://imgur.com/Zxfq4je

    li {
        display: list-item;
        text-align: -webkit-match-parent;
    }

    I want to use the items as buttons, so how do I get rid of the dots?

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 21768
    Brajesh Singh on #28406

    Hi Carsten,

    Thank you for the question.

    It is happening because they are list items and by default list items are styled that way.

    You can override that by specifying list-style-type:none; on a proper selector(css selector depends on how you have put the code).

    Regards
    Brajesh

  • Participant
    Level: Guru
    Posts: 995
    calu on #28413

    Hi Brajesh, thanks for your help, I will do that. Strange enough there are only two items in the list, but three dots?

    Regards
    Carsten

  • Keymaster
    (BuddyDev Team)
    Posts: 21768
    Brajesh Singh on #28414

    Hi Carsten,
    You are welcome.

    Try right clicking and inspecting the element. There might be an empty list item.

    Regards
    Brajesh

You must be logged in to reply to this topic.

This topic is: resolved