Pen Settings

HTML

CSS

CSS Base

Vendor Prefixing

Add External Stylesheets/Pens

Any URL's added here will be added as <link>s in order, and before the CSS in the editor. If you link to another Pen, it will include the CSS from that Pen. If the preprocessor matches, it will attempt to combine them before processing.

+ add another resource

JavaScript

Babel includes JSX processing.

Add External Scripts/Pens

Any URL's added here will be added as <script>s in order, and run before the JavaScript in the editor. You can use the URL of any other Pen and it will include the JavaScript from that Pen.

+ add another resource

Packages

Add Packages

Search for and use JavaScript packages from npm here. By selecting a package, an import statement will be added to the top of the JavaScript editor for this package.

Behavior

Save Automatically?

If active, Pens will autosave every 30 seconds after being saved once.

Auto-Updating Preview

If enabled, the preview panel updates automatically as you code. If disabled, use the "Run" button to update.

Format on Save

If enabled, your code will be formatted when you actively save your Pen. Note: your code becomes un-folded during formatting.

Editor Settings

Code Indentation

Want to change your Syntax Highlighting theme, Fonts and more?

Visit your global Editor Settings.

HTML

              
                <html>
<head>
  <title>
    Multilevel Menu Bar
  </title>
  <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/font-awesome/4.4.0/css/font-awesome.min.css">

</head>

<body>
  <nav>
    <ul>
      <li><a href="#"><i class="fa fa-home"></i>
Home</a></li>
      <li><a href="#"><i class="fa fa-graduation-cap"></i>
Courses</a>
        <ul>
          <li><a href="#">Web Development</a></li>
          <li><a href="#">Web Designing <i class="fa fa-angle-double-right position-expand-arrow" ></i>
</a>
            <ul>
              <li><a href="#">Using Photoshop</a></li>
              <li><a href="#">Web Design-Mockup and Wireframing</a></li>
              <li><a href="#">Web Desing using Illustrator</a></li>
              <li><a href="#"> Designing Web using Sketch App <i class="fa fa-angle-double-right position-expand-arrow"></i> </a>
                <ul>
                  <li><a href="#">By Robert William</a></li>
                  <li><a href="#">By Prof. Jhon</a></li>
                  <li><a href="#">By Brian</a></li>
                </ul>
              </li>

            </ul>
          </li>
          <li><a href="#">Front End Development</a></li>
          <li><a href="#">Search Engine Optimization</a></li>
        </ul>
      </li>
      <li><a href="#"><i class="fa fa-thumbs-o-up"></i>
About </a></li>
      <li><a href="#"><i class="fa fa-envelope"></i>
Contact Us</a>
        <ul>
          <li><a href="#">Some Links</a></li>
          <li><a href="#">Some More Links</li>
            <li><a href="#">Office Address</li>
           </ul>
        </li>
      </ul>
    </nav>
    
    <article>
      
        <p>Desinged and Coded By <cite><a href="https://www.facebook.com/smashtheshell">smashtheshell</a></cite></p>
      </article>
  
  </body>
</html>
              
            
!

CSS

              
                		
/*few resets */
body,html,ul,li,a{margin:0;padding:0;}

nav ul li{list-style-type:none;}
nav ul li a{font-family:helvetica; text-decoration:none; }
nav{margin: 50px 50px; background:#993039; padding-top:3px; border-radius:3px;}

/* styling main topbar */
nav>ul{
  height:2.6em;
  background:#c0392b;
  border-radius:3px;
}
/* important to keep submenu at their position */
nav>ul li{position:relative;}
/*styling topbar navigation items */
nav>ul>li{
  float:left;
  border-right:1px solid #ac3326;
  height:100%;
  line-height:2.6em;
  position:relative;
}
nav>ul>li:hover{
    background:#ac3326;
	transition:.3s background ease-in-out;
}




/* applying style to topbar items */
nav>ul>li>a{
  padding:0 1.6em;
}
nav>ul>li a{
  display:block;
  color:#ecf0f1;
}

nav>ul>li:first-child:hover{
  border-top-left-radius:3px;
  border-bottom-left-radius:3px;
  
}

nav>ul>li>ul>li:last-child:hover,
nav>ul>li>ul>li>ul>li:last-child:hover,
nav>ul>li>ul>li>ul>li>ul>li:last-child:hover{
   border-bottom-left-radius:3px;
  border-bottom-right-radius:3px;  
}
nav>ul>li>ul, nav>ul>li>ul>li>ul,nav>ul>li>ul>li>ul>li>ul{
  position:absolute;
  left:-9999px;
  white-space:nowrap;
  background:#1abc9c;
  border-bottom-left-radius:3px;
  border-bottom-right-radius:3px;
   transition:.3s left ease-in-out;
}




/* padding for each submenu lists */
nav>ul>li>ul>li, nav>ul>li>ul>li>ul>li,
nav>ul>li>ul>li>ul>li>ul>li{
  padding:0 1em;

}
/* applying different colors for submenu */
nav>ul>li>ul>li>ul{
 background:#3498db;
 }
nav>ul>li>ul>li>ul>li>ul{
  background:#9b59b6;
}
/* styling the links with different after highlighting */
nav>ul>li>ul>li:hover{
  background:#f1c40f;  transition:.3s all ease-in-out;
 transition:background,box-shadow .2s ease-in-out, .3s ease-in;
 box-shadow:0 3px  #f39c12;
}
nav>ul>li>ul>li>ul>li:hover{
  background:#e67e22;transition:.3s all ease-in-out;

   transition:background,box-shadow .2s ease-in-out, .3s ease-in;
 box-shadow:0 3px  #d35400;
}
nav>ul>li>ul>li>ul>li>ul>li:hover{
  background:#e74c3c;
  transition:background,box-shadow .2s ease-in-out, .3s ease-in;
 box-shadow:0 3px  #c0392b;
}


/* revealing first level submenu */
nav>ul>li:hover>ul{
    left:0; 
    top:40;
	 transition:.3s left ease-in-out;
}
/* revealing second level submenu */
nav>ul>li>ul>li:hover>ul{
   left:100%;
   top:0;
   transition:.3s left ease-in-out;
}
/* revealing third submenu */
nav>ul>li>ul>li>ul>li:hover>ul{
  left:100%;
  top:0%;
 transition:.3s left ease-in-out;
}
/* positioning the angle arrows towards right inside submenu*/
.position-expand-arrow{
  position:absolute !important;
  right:1em !important;
  line-height:2.6em !important;
}
/* Clearing floats */
nav ul::after, nav ul::before{
  content:"";
  display:table;
}
nav ul::after{
  clear:both;
}


article{
  text-align:center;
}
article a{
  text-decoration:none;
}
              
            
!

JS

              
                
              
            
!
999px

Console