HTML CSS examples for CSS Property:box-shadow
Code CSS3 Shadows
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> body {<!-- w ww. j ava 2 s .co m--> background:Chartreuse; } section { margin-left:51px; padding:11px 0; background:yellow; } div { position:relative; margin:11px; margin-left:-11px; width:201px; height:31px; background:blue; } div:after { position:absolute; content:" "; bottom:-11px; left:0; width:0; height:0; border-style:solid; border-width:6px; border-color:pink; } .border { border-bottom:5px solid OrangeRed; border-right:3px solid grey; } .shadow { box-shadow:3px 3px 0px 3px BlueViolet } </style> </head> <body> <section> <div class="border"></div> <div class="shadow"></div> </section> </body> </html>