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.

Two level menu

Featured Replies

Dear Experts

 

I refer to this link

http://css.dzone.com/news/css-and-html-two-level-menus-t

 

with the help of above link, I am trying to create CSS And HTML Two Level Menus.

 

For this I copy following codes but it has some error.

Please help me to correct my codes.

 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
   <head>
       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       <title>HTML and CSS Drop Down Menu</title>

<style type="text/css">
#nav li.second-level
{
   position:relative;
}

#nav li ul
{
   display:none;
}

#nav li:hover ul, #nav li:focus ul
{
   position:absolute;
   display:block;
}

#nav li ul li
{
   float:none;
   border-top:1px solid #fff;
}

#nav li:hover ul, #nav li:focus ul
{
   position:absolute;
   top:0;
   margin-left:100%;
   display:block;
}

#nav li.second-level li
{
   border-left:5px solid #376D00;   
}
</style>


   </head>
   <body>
       <ul id="nav">
   <li><a href="index.html" title="return to front page">Home</a></li>
   <li class="second-level"><a href="about.html" title="learn more about us">About</a>
   <ul>
       <li>Corporate Profile</li>
       <li>Employee Profiles</li>
       <li>Divisions</li>
   </ul>
   </li>
   <li><a href="portfolio.html" title="see some samples of our work">Portfolio</a></li>
   <li><a href="contact.html" title="contact us">Contact</a></li>
</ul>
   </body>
</html>

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.