Setting a LI to 100% height in a responsive framework - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Responsive Layout

Description

Setting a LI to 100% height in a responsive framework

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">
html, body {
   height:100%;
   margin:0;
   padding:0;
}

ul {<!--from  www. j  av a  2  s.  co m-->
   height:100%;
}

li {
   height:100%;
   background-color:Chartreuse;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>L</li> 
   <li>L</li> 
   <li>L</li> 
   <li>L</li> 
  </ul>Lorem ipsum dolor s  
 </body>
</html>

Related Tutorials