We help IT Professionals succeed at work.
Get Started

Bootstrap - dropdown not highlighted properly

Last Modified: 2016-02-25
Due to my logo size, dimension 150x66, I have to adjust "navbar-brand"  below. However, when I hoover over dropdown, the list is not fully highlighted. How can I fix it?

 <div class="navbar navbar-default navbar-fixed-top">
            <div class="container-fluid">
                <!--logo -->
                <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    <a href="#" class="navbar-brand" style="padding-top: 0px; padding-bottom: 10px">
                        <img src="image_1.gif" /></a>

                <div class="navbar-collapse collapse">
                    <ul class="nav navbar-nav">
                        <li><a runat="server" href="~/">Home</a></li>
                        <li><a runat="server" href="~/About">About</a></li>
                        <li><a runat="server" href="~/Contact">Contact</a></li>
                        <li class="dropdown">
                            <a href="/" class="dropdown-toggle" data-toggle="dropdown"><span class="glyphicon glyphicon-user"></span> John Doe<strong class="caret"></strong></a>
                            <ul class="dropdown-menu">
                                    <a href="#">Switch User</a>
                              <%--  <li>
                                    <a href="#">Account</a>
                                    <a href="#">Billing</a>
                                <li class="divider"></li>
                                    <a href="#"><span class="glyphicon glyphicon-off"> Logout</span></a>


Open in new window

Watch Question
This problem has been solved!
Unlock 1 Answer and 2 Comments.
See Answer
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE