[Special Summer Sale] 40% OFF All Magento 2 Themes

Cart

css menu submenu horizontal

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #10102
    furyfish
    Participant

    How can I create css menu and submenu like this.

    When I click or move mouse over the menu, It has a small icon at bottom

    enter image description here

    #10103
    cr4ckm3
    Participant

    HTML

    <ul class="nav">
       <li><a href=#><span>Main item text</span><span class="bullet"></span></a>
          <ul>
            <li><a href=#><span>Sub item text</span><span class="bullet"></span></a></li>
          </ul>
       </li>
    </ul>
    

    CSS

    ul.nav li ul { position: absolute; display: none; }
    ul.nav li { float: left; }
    ul.nav li:hover ul { display: block; }
    

    Ofcourse besides that you must style list properly.
    Here you can try how it work with bullet http://jsfiddle.net/9r4Lf/1/

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.