Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

How to convert my dropdown menu into responsive

Featured Replies

792;221;e1798991cd1ac2a630174982ede4a017

 

HTML:

 

<ul
id="menu">

<li>

<a href="#">Web design company</a>

</li>

<li><a
href="#">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><a
href="#">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#menu
li, ul#menu ul.sub-menu li {

 

list-style-type: none;

display: inline-block;



}



/*Link
Appearance*/

 

ul#menu
li a, ul#menu li ul.sub-menu li a {



text-decoration: none;

 

color: #006;

 

background: #9C9;

padding: 5px;

display:inline-block;



}



/*Make
the parent of sub-menu relative*/



ul#menu
li {



position: relative;



}



/*sub
menu*/



ul#menu
li ul.sub-menu {



display:none;

position: absolute;

top: 30px;

left: 0;

 

width: 100px;



}



ul#menu
li:hover ul.sub-menu {

 

display:block;

 

}


ul#menu
li: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.

  • Author

Thanks for your reply but can you tell me where will I get a good tutorial to learn bootstrap?

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 by Jack

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.