Empty span margin / padding - HTML CSS CSS Property

HTML CSS examples for CSS Property:padding

Description

Empty span margin / padding

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">
.outer {<!--from  w  ww  .j ava2s. co  m-->
   background:grey;
   padding:5px;
}

.inner {
   display:inline-block;
   background:cyan;
   height:41px;
   width:41px;
}

.inner:after {
   content:'\1a0';
}
</style> 
 </head> 
 <body> 
  <div class="outer"> 
   <span class="inner">Lor</span> 
  </div> 
  <br> 
  <div class="outer"> 
   <span class="inner"></span> 
  </div>  
 </body>
</html>

Related Tutorials