I am currently experimenting with a bootstrap template. In the navigation bar, there is an option for "Blog" and "Test".
For the "Test" button, I decided to remove the li class="dropdown "
because I wanted to create a button that changes color on hover similar to the "Blog" button. However, when I hover over the "Test" button, only the text turns blue without a white background.
I'm struggling to figure out how to make it work. I need to create a CSS class for a button in the navbar that does not have a dropdown feature.
As an experiment, I even deleted all of the CSS, but the hover effect still worked on the "Blog" button.
<div class="collapse navbar-collapse" id="navbar-collapse-1">
<!-- main-menu -->
<ul class="nav navbar-nav ">
<li class="dropdown ">
<a href="blog-large-image-right-sidebar.html" class="dropdown-toggle" data-toggle="dropdown">Blog</a>
<ul class="dropdown-menu">
<li ><a href="index-blog.html">Blog Home <span class="badge">v1.1</span></a></li>
<li ><a href="index-blog-2.html">Blog Home 2 <span class="badge">NEW</span></a></li>
</ul>
</li>
</ul>
<ul class="nav navbar-nav ">
<li>
<a href="blog-large-image-right-sidebar.html" class="dropdown-toggle" data-toggle="dropdown">Test</a>
<ul class="dropdown-menu">
<li ><a href="index-blog.html">Blog Home <span class="badge">v1.1</span></a></li>
<li ><a href="index-blog-2.html">Blog Home 2 <span class="badge">NEW</span></a></li>
<li class="dropdown ">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Large Image</a>
<ul class="dropdown-menu to-left">
<li ><a href="blog-large-image-right-sidebar.html">Right Sidebar</a></li>
<li ><a href="blog-large-image-left-sidebar.html">Left Sidebar</a></li>
<li ><a href="blog-large-image-no-sidebar.html">Without Sidebar</a></li>
</ul>
</li>
<li class="dropdown ">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Medium Image</a>
<ul class="dropdown-menu to-left">
<li ><a href="blog-medium-image-right-sidebar.html">Right Sidebar</a></li>
<li ><a href="blog-medium-image-left-sidebar.html">Left Sidebar</a></li>
<li ><a href="blog-medium-image-no-sidebar.html">Without Sidebar</a></li>
</ul>
</li>
<li class="dropdown ">
<a class="dropdown-toggle" data-toggle="dropdown" href="#">Masonry</a>
<ul class="dropdown-menu to-left">
<li ><a href="blog-masonry-right-sidebar.html">Right Sidebar</a></li>
<li ><a href="blog-masonry-left-sidebar.html">Left Sidebar</a></li>
<li ><a href="blog-masonry-no-sidebar.html">Without Sidebar</a></li>
</ul>
</li>
<li ><a href="blog-timeline.html">Timeline</a></li>
<li ><a href="blog-post.html">Blog Post</a></li>
</ul>
</li>
</ul>
</div>