set a div with li to parents height - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

set a div with li to parents height

Demo Code

ResultView the demo in separate window

<html>
 <head> 
  <meta name="viewport" content="width=device-width, initial-scale=1"> 
  <style id="compiled-css" type="text/css">
#wrapper {<!--from   w  w w  .  jav  a 2 s  .co m-->
   overflow:auto;
   border:2px solid Chartreuse;
   width:100%;
   background:yellow;
   height:auto;
   -webkit-transition:all 0.6s ease;
   -moz-transition:all 0.6s ease;
   -o-transition:all 0.6s ease;
   transition:all 0.6s ease;
}

#sidebar-wrapper {
   margin-left:-151px;
   overflow-y:auto;
   background:blue;
   height:100%;
   float:left;
   background-color:pink;
   -webkit-transition:all 0.6s ease;
   -moz-transition:all 0.6s ease;
   -o-transition:all 0.6s ease;
   transition:all 0.6s ease;
   background:blue;
}

#page-content-wrapper {
   width:100%;
   position:absolute;
   padding:16px;
}

.sidebar-nav li {
   text-indent:21px;
   line-height:41px;
}

.sidebar-nav li a {
   display:block;
   text-decoration:none;
   color:OrangeRed;
}
</style> 
 </head> 
 <body> 
  <div id="wrapper"> 
   <!-- Sidebar --> 
   <div id="sidebar-wrapper"> 
    <ul class="sidebar-nav"> 
     <li class="sidebar-brand"> <a href="#">Lorem ipsum dolor sit</a> </li> 
     <li class="sidebar-brand"> <a href="#">Lorem ipsum dolor sit</a> </li> 
     <li class="sidebar-brand"> <a href="#">Lorem ipsum dolor sit</a> </li> 
    </ul> 
   </div> 
   <!-- Page Content --> 
   <div id="page-content-wrapper"> 
    <div class="container-fluid"> 
     <div class="row">
       Lorem ipsum dolor si 
     </div> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials