Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9121845
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:57:15+00:00 2026-06-17T05:57:15+00:00

I am trying to define two menu’s in my header using the bootmetro framework.

  • 0

I am trying to define two menu’s in my header using the bootmetro framework. The first is my main menu and the second is my user menu.

For some reason the menu is visualized wrong the second time, the line space of the menu items are too large.

The code used to create a menu looks something like this

<div class="dropdown">
    <a class="header-dropdown dropdown-toggle accent-color" data-toggle="dropdown" href="#">
        Actions
        <b class="caret"></b>
    </a>
    <ul class="dropdown-menu">
        <li><a href="#">item1</a></li>
        <li><a href="#">item2</a></li>
        <li><a href="#">item3</a></li>
        <li class="divider"></li>
        <li><a href="#">item4</a></li>
    </ul>
</div>

The problem I run in to is shown in the screenshots below. In my second menu the menu item does not take the full with of the menu.

UPDATE:

The problem seems to be in the bootmetro CSS stylesheet and firebug narrows the search a bit (thanks Thanh Trung!). In inspect mode I can clearly see that the a href does not fill the menu item (li) in my second menu, while it does take the max width in my first menu.

The part in the bootmetro CSS looks like this:

.dropdown-menu li > a {
  display: block;
  padding: 3px 20px;
  clear: both;
  font-weight: normal;
  line-height: 20px;
  color: #333333;
  white-space: nowrap;
}

Additional question: What does this ‘>’ cause? I have never seen that before.

In both menus the CSS class “dropdown-menu” is used, BUT, when I remove the body of this CSS class only the first menu changes accordingly.

Main question: So why is this class not properly inherited by me second menu item?

For completeness again the HTML code for the second menu (the menu that shows the artifact):

<div class="dropdown pull-left">
        <a class="header-dropdown dropdown-toggle pull-right" data-toggle="dropdown" href="#">
            <b class="icon-settings"></b>
        </a>
        <ul class="dropdown-menu pull-right">
            <li><a href="#">Settings</a></li>
            <li><a href="#">Settings</a></li>
            <li><a href="#">Settings</a></li>
            <li class="divider"></li>
            <li><a href="#">Log out</a></li>
        </ul>
    </div>

Menu 1

Correctly visualized menu

Menu 2

Wrongly visualized menu

Menu 3

Inspection: the “a” is not taking the full width

Menu 4

Inspection: the list item is taking the full width

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T05:57:16+00:00Added an answer on June 17, 2026 at 5:57 am

    Because the code is identical, but there are difference when displaying, it means that the css is affecting it. Without given us the css, it’s impossible to tell what is the problem.

    Here are css properties that could affect the total height of an element: height, line-height, padding, margin.

    You can use Firebug or Chrome inspector to inspect an element to see its styles

    UPDATE

    bootmetro.css line 2018 is affecting (overriding) it

    #top-info a {
       display: inline-block;
       height: 46px;   /**** should be removed or override *****/
       color: #5A5A5A;
    }
    

    Also I suggest you to use Firebug (an addon of firefox) to inspect elements, dont use the inspector of Firefox

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to define two structures in C when the second struct uses
I'm trying to define a simple one-to-many relationship between two poco's , using the
I am trying to define two many to many relationship to same object using
I am trying to define an abstract class that has operators to compare two
I'm trying to define two different file extension mappings and two different mime-type IntentFilters
I have two files that I am trying to work with. menu.py has the
I have two 4x4 transformation matrices that define two coordinate spaces. I am trying
I'm trying to define a class with two public methods. It so happens that
I trying to define two radio button in MFC ( VS 2010 ) that
I am trying to define a class in the global scope which contains some

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.