<li> element alignment and reduce space on left side of bullet - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Alignment

Description

<li> element alignment and reduce space on left side of bullet

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">
.container {<!--  ww w .  ja  v a  2s  .c  o  m-->
   width:501px;
   overflow:auto;
}

.container ul {
   list-style:inside none square;
}
</style> 
 </head> 
 <body> 
  <div class="container"> 
   <ul> 
    <li>Lor</li> 
    <li>Lor</li> 
    <li>Lorem</li> 
    <li>Lore</li> 
   </ul> 
  </div>  
 </body>
</html>

Related Tutorials