Pure css drop down navigation bar – Today we are sharing with you Pure CSS Drop Down Menu with code, today’s most of websites using drop down menu feature. Pure css drop down menu is a very simple and easy to use, you can use every type f websites such as news, tutorials, corporate, hotel, directory etc. HTML Websites, PHP Websites, ASP Websites. A flat designed drop down menu is 100% built with plain HTML and CSS. You can download this using download button make it yours. don’t forget to share.
HTML Code of your Pure css drop down menu using nested Html lists as follows.
<!DOCTYPE html> <html> <head> <title>Pure css drop down menu | PHPKIDA </title> <meta name="viewport" content="width=device-width, initial-scale=1"> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> </head> <body> <nav> <ul class="cf"> <li><a href="#">Menu Item 1</a></li> <li><a class="dropdown" href="#">Menu Item 2</a> <ul> <li><a href="#">Sub-menu Item 1</a></li> <li><a href="#">Sub-menu Item 2</a></li> <li><a href="#">Sub-menu Item 3</a></li> </ul> </li> <li><a href="#">Menu Item 3</a></li> <li><a href="#">Menu Item 4</a></li> </ul> </nav> </body> </html>
CSS Code of your Pure css drop down menu.
nav ul { -webkit-font-smoothing:antialiased; text-shadow:0 1px 0 #FFF; background: #ddd; list-style: none; margin: 0; padding: 0; width: 100%; } nav li { float: left; margin: 0; padding: 0; position: relative; min-width: 25%; } nav a { background: #ddd; color: #444; display: block; font: bold 16px/50px sans-serif; padding: 0 25px; text-align: center; text-decoration: none; -webkit-transition: all .25s ease; -moz-transition: all .25s ease; -ms-transition: all .25s ease; -o-transition: all .25s ease; transition: all .25s ease; } nav .dropdown:after { content: ' ▶'; } nav .dropdown:hover:after{ content:'bc' } nav li:hover a { background: #ccc; } nav li ul { float: left; left: 0; opacity: 0; position: absolute; top: 35px; visibility: hidden; z-index: 1; -webkit-transition: all .25s ease; -moz-transition: all .25s ease; -ms-transition: all .25s ease; -o-transition: all .25s ease; transition: all .25s ease; } nav li:hover ul { opacity: 1; top: 50px; visibility: visible; } nav li ul li { float: none; width: 100%; } nav li ul a:hover { background: #bbb; } /* Clearfix */ .cf:after, .cf:before { content:""; display:table; } .cf:after { clear:both; } .cf { zoom:1; }
Template Name : – Pure css drop down menu.
Date Created : – 28-01-2018
Compatible Browsers : – Google Chrome, Firefox, Safari, IE 10, Opera etc.
Keywords : pure css drop down menu, pure css drop down menu free download, pure css dropdown menu, pure css drop down navigation bar, pure css select dropdown.
My name is Mukesh Jakhar and I am a Web Application Developer and Software Developer, currently living in Jaipur, India. I have a Master of Computer Application in Computer Science from JNU Jaipur University. I loves to write on technology and programming topics. Apart from this, I love to travel and enjoy the beauty of nature.