Layout element inside li float left - HTML CSS CSS Layout

HTML CSS examples for CSS Layout:Layout

Description

Layout element inside li float left

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 li {
   float:left;
}
</style> <!--from w  w  w. j a v  a 2s  . c o m-->
 </head> 
 <body> 
  <ul> 
   <li> 
    <div>
      Lore 
    </div> 
    <div>
      Lorem 
    </div> </li> 
   <li> 
    <div>
      Lore 
    </div> 
    <div>
      Lorem 
    </div> </li> 
  </ul>  
 </body>
</html>

Related Tutorials