Indentation of list items - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Indentation of list items

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">
body {<!--   w ww  .  j  a  v  a  2s .  c  o m-->
   font-family:verdana;
   font-size:2.0em;
   width:501px;
}

li {
   list-style-position:outside;
   padding-left:2em;
   list-style-type:disc;
}

ul {
   list-style-type:none;
   margin-left:0px;
   padding-left:2em;
   list-style-image:none;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>Lorem ipsum dolor sit amet, consectetur adip</li> 
   <li>Lorem ipsum dolor sit amet, consectetur adi</li> 
   <li>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi ullamcorper molestie lacus sed fermentum. Aliquam erat volutpat. Vestibulum tortor neque, ornare vitae tempor hendrerit, luctus at neque. Phasellus sed quam pharetra, tincidunt tortor in, pharetra nisl. Maecenas aliqu</li> 
   <li>Lorem ipsum dolor sit amet, con</li> 
  </ul>  
 </body>
</html>

Related Tutorials