Ul and block elements floated left - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Ul and block elements floated left

Demo Code

ResultView the demo in separate window


<html>
 <head> 
  <title>Lorem ipsu</title> 
  <style type="text/css">
.my_div {<!--   w  w w .ja va 2 s  . c  o m-->
   float:left;
   background-color:Chartreuse;
}

.my_ul {
   padding-left:26px;
   list-style-position:inside;
   margin-left:71px;
}
</style> 
 </head> 
 <body> 
  <div class="my_div">
    Lorem ipsum 
   <br>Lorem ipsum d 
  </div> 
  <ul class="my_ul"> 
   <li>Lorem </li> 
   <li>Lorem </li> 
   <li>Lorem </li> 
   <li>Lorem </li> 
  </ul>  
 </body>
</html>

Related Tutorials