Technoezy
Pages
Home
......PC Tricks.....
HTML AND CSS
HIDE DATA OR FILE
....HTML TRICKS.....
shortcut shutdown
INSTALL PHP
HTML AND CSS
Saturday, 4 October 2014
HOW TO CREATE DROP DOWN MENU USING
HTML AND CSS
CSS PART:
ul{ padding: 0; list-style: none; } ul li{ float: left; width: 150px; text-align: center; } ul li a{ display: block; padding: 5px 10px; color: #333; background: #f2f2f2; text-decoration:none; } ul li a:hover{ color: #fff; background: #939393; } ul li ul{ display:none; } ul li:hover ul{ display: block; /* display the dropdown */ }
HTML PART:
www.sooezy.blogspot.com
Home
Computer
Laptops
Dell
Acer
Hp
Games
Fifa
Gta
Race
Contact
AshokPurohit
DEMO:
No comments:
Post a Comment
Home
Subscribe to:
Posts (Atom)
No comments:
Post a Comment