No replies
sueandco
sueandco's picture
Offline
newbie
Last seen: 23 weeks 5 days ago
Timezone: GMT-7
Joined: 2020-06-13
Posts: 2
Points: 4

Hi
using css/html and bootstrap
How do I achieve this effect (see dropdown.jpg attatched)in my navbar.
here is code

  <section id="navArea">
    <nav class="navbar navbar-inverse" role="navigation">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar"> <span class="sr-only">Toggle navigation</span> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
      </div>
      <div id="navbar" class="navbar-collapse collapse">
        <ul class="nav navbar-nav main_nav">
          <li class="active"><a href="index.html"><span class="fa fa-home desktop-home"></span><span class="mobile-show">History</span></a></li>
          <li><a href="#">Living locally</a></li>
          <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">Wines</a>
            <ul class="dropdown-menu" role="menu">
              <li><a href="#">Reds</a></li>
              <li><a href="#">Whites <img src="images/white.jpg"></a></li>
              <li><a href="#">Rosé</a></li>
              <li><a href="#">Vinyards</a></li>
 
            </ul>
          </li>
          <li><a href="#">local history</a></li>
          <li><a href="contact.html">Contact Us</a></li>
          <li><a href="pages/404.html">404 Page</a></li>
        </ul>
      </div>
    </nav>
  </section>

Any help welcome
thanks

AttachmentSize
dropdown.jpg19.15 KB