Box-shadow only on one side of an element - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

Box-shadow only on one side of an element

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">
.wrapper<!--from  www  . java  2  s . c om-->
 {
   width:81%;
   margin:6%;
}

.leftcol
 {
   width:71%;
   float:left;
}

.shaddowcontainer
 {
   overflow:hidden;
   width:31%;
}

.rightcol
 {
   float:right;
   width:91%;
   padding-left:6px;
   box-shadow:0px 0px 11px Chartreuse;
}
</style> 
 </head> 
 <body> 
  <div class="wrapper"> 
   <div class="leftcol"> 
    <p>Lorem ipsum</p> 
    <br> 
    <br> 
    <br> 
    <br> 
    <br> 
    <br> 
    <br> 
    <br> 
   </div> 
   <div class="shaddowcontainer"> 
    <div class="rightcol"> 
     <p>Lorem ipsum </p> 
     <br> 
     <br> 
     <br> 
     <br> 
     <br> 
     <br> 
     <br> 
     <br> 
    </div> 
   </div> 
  </div>  
 </body>
</html>

Related Tutorials