Phantom image / li margin - HTML CSS CSS Widget

HTML CSS examples for CSS Widget:Image

Description

Phantom image / li margin

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 {<!--   ww w.j a  v a 2  s .co m-->
   font-size:23px;
}

ul {
   display:block;
   list-style:none;
   margin:0;
   padding:0;
   font-size:0;
}

li {
   display:inline-block;
   background:Chartreuse;
   padding:3px 11px;
   font-size:23px;
}
</style> 
 </head> 
 <body> 
  <ul> 
   <li>L</li> 
   <li>L</li> 
   <li>L</li> 
  </ul>  
 </body>
</html>

Related Tutorials