Full width left-aligned list - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

Full width left-aligned list

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">
ul {<!-- w  w  w  .jav  a  2 s  .c o  m-->
   display:table;
   width:100%;
}

li {
   display:table-cell;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li style="background: #f00;">L</li> 
   <li style="width: 100px; background: #00f">L</li> 
   <li style="background: #f0f;">L</li> 
  </ul>  
 </body>
</html>

Related Tutorials