HTML CSS examples for CSS Widget:UL Element
Ul and block elements floated left
<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>