HTML CSS examples for CSS Property:box-shadow
Box-shadow overflow
<html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> <style id="compiled-css" type="text/css"> #wrap {<!-- ww w .ja va 2 s .co m--> width:301px; margin:21px auto; position:relative; } h2, #main { background:Chartreuse; border-radius:4px; box-shadow:0px 0px 11px 11px yellow; } h2 { width:301px; margin:21px 0px 0px 21px; padding:6px 12px 6px 12px; position:absolute; z-index:2; color:blue; background-color:pink; } #main { width:301px; height:301px; top:51px; margin:0px 0px 0px 21px; padding:11px 11px 11px 11px; display:block; position:relative; z-index:3; } </style> </head> <body> <div id="wrap"> <h2>Lorem</h2> <div id="main"> Lorem ipsum dolor </div> </div> </body> </html>