Box Shadow without adding margin - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Box Shadow without adding 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">
span {<!--   w  w  w  .ja  v  a2 s .c o  m-->
   background:red;
   color:Chartreuse;
}

span.shadowed {
   box-shadow:0 0 11px green;
}
</style> 
 </head> 
 <body> 
  <span>Lorem i</span> 
  <span class="shadowed">Lore</span>  
 </body>
</html>

Related Tutorials