September 12, 201313 yr HTML: <ulid="menu"> <li> <a href="#">Web design company</a> </li> <li><ahref="#">Web design services</a> <ul class="sub-menu"> <li> <a href="#">SEO</a> </li> <li> <a href="#">Android apps development</a> </li> <li> <a href="#">SEM</a> </li> <li> <a href="#">CMS Web development</a> </li> <li> <a href="#">SMM</a> </li> </ul> </li> <li><a href="#">Web development company</a> </li> <li><ahref="#">Mobile application development</a> <ul class="sub-menu"> <li> <a href="#">Lead generator</a> </li> <li> <a href="#">Responsive web design</a> </li> <li> <a href="#">Web design cost estimate</a> </li> </ul> </li> <li> <a href="#">Web design blog</a> </li> </ul> CSS:/*CSS Document */ ul#menu,ul#menu ul.sub-menu { padding:0; margin: 0; } ul#menuli, ul#menu ul.sub-menu li { list-style-type: none; display: inline-block; } /*LinkAppearance*/ ul#menuli a, ul#menu li ul.sub-menu li a { text-decoration: none; color: #006; background: #9C9; padding: 5px; display:inline-block; } /*Makethe parent of sub-menu relative*/ ul#menuli { position: relative; } /*submenu*/ ul#menuli ul.sub-menu { display:none; position: absolute; top: 30px; left: 0; width: 100px; } ul#menuli:hover ul.sub-menu { display:block; } ul#menuli:hover ul.sub-menu a:hover { background: #CCC; } I need help to convert my drop down menu into responsive. Please help me to convert this.
September 12, 201313 yr Using Bootstrap may help you http://www.getbootstrap.com they have inbuilt functions that you can use to create the responsive menus. A lot more people have started to use this
September 12, 201313 yr Author Thanks for your reply but can you tell me where will I get a good tutorial to learn bootstrap?
September 12, 201313 yr Thanks for your reply but can you tell me where will I get a good tutorial to learn bootstrap? The documentation is pretty good. If you look at the getting started section and example templates you should get an understanding of what's going on. Each module has its own docs and example template. If you need an example Bootstrap nav, look at http://getbootstrap.com/examples/navbar/. Edited September 12, 201313 yr by Jack
September 12, 201313 yr As Jack says read the Getbootstrap site as any possible element you will need should be covered on there. look at the navbar section possibly the default Navbar would work for you on this one. nice and simple design
Create an account or sign in to comment