Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

css menu submenu horizontal

Tags:

html

css

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

like image 571
furyfish Avatar asked May 27 '26 15:05

furyfish


1 Answers

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/

like image 83
Cr4ckm3 Avatar answered May 30 '26 05:05

Cr4ckm3



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!