cssAudio - Activefile-genericCSS - ActiveGeneric - ActiveHTML - ActiveImage - ActiveJS - ActiveSVG - ActiveText - Activefile-genericVideo - ActiveLovehtmlicon-new-collectionicon-personicon-teamlog-outoctocatpop-outspinnerstartv

Pen Settings

CSS Base

Vendor Prefixing

Add External CSS

These stylesheets will be added in this order and before the code you write in the CSS editor. You can also add another Pen here, and it will pull the CSS from it. Try typing "font" or "ribbon" below.

Quick-add: + add another resource

Add External JavaScript

These scripts will run in this order and before the code in the JavaScript editor. You can also link to another Pen here, and it will run the JavaScript from it. Also try typing the name of any popular library.

Quick-add: + add another resource

Code Indentation

     

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.

            
              <h1>Parent child vertical list menu</h1>
	<nav class="nav">
	  	<ul class=list>
    				<li>
					      <a href="#">Home</a>
        					<ul>
          						<li>
							            <a href="#">Lab</a>
							              <ul>
								                <li>
									                  <a href="#">Code</a>
                  									<ul>
                    								<li>
											                      <a href="#">Html</a>
										                    </li>
                    							<li>
                      											<a href="#">Css</a>
										                    </li>
                    										<li>
											                      <a href="#">Jquery</a>
										                    </li>
                 									</ul>
								              </li>
								              <li>
                						<a href="#">Graph</a>
									                <ul>
										                  <li>
											                    <a href="#">Image</a>
										                  </li>
                  										<li>
											                    <a href="#">Design</a>
                  										</li>
									                </ul>
              								</li>
							            </ul>
						          </li>
						          <li>
            							<a href="#">Blog</a>
							            <ul>
              					<li>
									                 <a href="#">Category</a>
									                 <ul>
										                   <li>
											                     <a href="#">Code</a>
										                   </li>
										                   <li>
                     											<a href="#">Graph</a>
                   										</li>
                 									</ul>
								               </li>
             							</ul>
						           </li>
						           <li>
							             <a href="#">About</a>
							             <ul>
								               <li>
                 									<a href="#">Vcard</a>
               								</li>
								               <li>
									                 <a href="#">Map</a>
								               </li>
             							</ul>
            						</li>
					         </ul>
				       </li>
     			</ul>
   </nav>
            
          
!
            
              *,
*:before,
*:after {
  -webkit-box-sizing: border-box;
  -moz-box-sizing: border-box;
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  position: relative;
  margin: 0;
  padding: 0;
  
  border: 0 none;
    
  -webkit-transition: all .4s;
  -moz-transition: all .4s;
  transition: all .4s;
}

html,
body {
  width: 100%;
  height: 100%;
  
  background: RGBA(0, 58, 97, 1);
  
  font-family: 'Fjalla One', sans-serif;
  font-size: 18px;
}

h1 {
  padding-top: 40px;
  
  color: #ccc;
  text-align: center;
  font-size: 1.5rem;
    
  text-shadow: rgba(0,0,0,0.6) 1px 0, rgba(0,0,0,0.6) 1px 0, rgba(0,0,0,0.6) 0 1px, rgba(0,0,0,0.6) 0 1px;
}

.nav {
  margin: 20px auto;
  left: 60px;
  width: 455px;
  min-height: auto;
}

ul.list,
ul.list ul {
  margin:0;
  padding:0;
  list-style-type: none;
   
}

ul.list ul {
  position:relative;
  margin-left:10px;     
}

ul.list ul:before {
  content:"";
  display:block;
  position:absolute;
  top:0;
  left:0;
  bottom:0;
  width:0;
    
  border-left:1px solid #ccc;
}

ul.list li  {
  position:relative;
  margin:0;
  padding:3px 12px;
  
  color:#ccc;
  text-decoration: none;
  text-transform: uppercase;
  font-size:13px;
  font-weight:normal;
  line-height:20px;   
}

ul.list li a { 
  position:relative;
  
  color:#ccc;
  text-decoration: none;
  text-transform: uppercase;
  font-size:14px;
  font-weight:bold;
  line-height:20px;
}

ul.list li a:hover,
ul.list li a:hover+ul li a {
    
  color: RGBA(213, 235, 227, 1);
}

ul.list ul li:before {
  content:"";
  display:block;
  position:absolute;
  top:10px;
  left: 0;
  width:8px;
  height:0;
  
  border-top:1px solid #ccc;    
}

ul.list ul li:last-child:before {
  top: 10px; 
  bottom: 0;
  height: auto;
  
  background: RGBA(0, 58, 97, 1); 
}
            
          
!
            
              // Parent child vertical list menu

// Inspired by https://cssdeck.com/labs/pure-css-tree-menu-framework

// Coding by http://francoislesenne.xyz
            
          
!
999px
Loading ..................

Console