Spacing between two <li> elements - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:UL Element

Description

Spacing between two <li> elements

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 {
   background-color:Chartreuse;
   display:inline;
   float:left;
   padding:6px;
}
</style> <!--  ww  w.j  a  va  2 s .  c o  m-->
 </head> 
 <body> 
  <ul> 
   <li>Lore</li> 
   <li>Lore</li> 
  </ul>  
 </body>
</html>

Related Tutorials