make css curve box with gradient & shadow - HTML CSS CSS Property

HTML CSS examples for CSS Property:box-shadow

Description

make css curve box with gradient & shadow

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">
div {<!--  w  w w  .  ja v a 2  s. c o  m-->
   width:201px;
   margin:auto;
   margin-top:21px;
   height:201px;
   background:red;
   border-radius:26px;
   box-shadow:inset 0 0 16px Chartreuse;
   position:relative;
}

div:before {
   content:"";
   position:absolute;
   border-left:16px solid yellow;
   border-right:16px solid blue;
   height:201px;
   border-radius:16px 0 0 16px;
}
</style> 
 </head> 
 <body> 
  <div></div>  
 </body>
</html>

Related Tutorials