Bootstrap - dropdown not highlighted properly

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>
                    </button>
            
                    <a href="#" class="navbar-brand" style="padding-top: 0px; padding-bottom: 10px">
                        <img src="image_1.gif" /></a>
                </div>

                <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">
                                <li>
                                    <a href="#">Switch User</a>
                                </li>
                              <%--  <li>
                                    <a href="#">Account</a>
                                </li>
                                <li>
                                    <a href="#">Billing</a>
                                </li>--%>
                                <li class="divider"></li>
                                <li>
                                    <a href="#"><span class="glyphicon glyphicon-off"> Logout</span></a>

                                </li>
                            </ul>
                        </li>
                    </ul>
                  
                </div>
             
            </div>
        </div>

Open in new window

image_1.png
VBdotnet2005Asked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Vimal DMSenior Software EngineerCommented:
Hi,

It is CSS change i think might be with the following properties,

margin, padding and width:100px.

Thanks
lenamtlCommented:
By default there is a space before the first item and space after the latest element.
The .dropdown-menu .divider have a padding
If you have more menu item you will see the difference.
Check Bootstrap.css
for more info http://getbootstrap.com/javascript/#within-a-navbar

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
HTML

From novice to tech pro — start learning today.