Box shadow to triangle created using css - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Box shadow to triangle created using css

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">
.triangle:before {<!--from   w w  w  .  j  av a 2 s .c o m-->
   border:inset 7px;
   content:"";
   display:block;
   height:0;
   width:0;
   border-color:Chartreuse;
   border-bottom-style:solid;
   position:absolute;
   top:51px;
   left:51px;
   z-index:90;
   box-shadow:0px 0px 3px 3px yellow;
}
</style> 
 </head> 
 <body> 
  <div class="triangle"> 
  </div>  
 </body>
</html>

Related Tutorials