css - How do I create a box-shadow effect that looks like a curve? -


i familiar creating basic box-shadows can't understand how create looks curve. better explain looking for, i've attached image. need similar that. how can create it?

box shadow

i've tried achieve somehow using absolute positioned elements, box shadow , radial gradient. overall use background image.

but still have @ my fiddle unfortunately doesn't goal. might give starting point.

enter image description here html

<div id="wrapper">     <ul id="nav">     </ul>     <div id="first"></div>     <div id="second"></div> </div> 

css

body {     background: #fefefe; }  #wrapper {      position: relative;        display: block;     width: 960px;     height: 80px;     overflow: hidden; } ul {     height: 40px;     width: 100%;     background: #fff;     box-shadow: 0px 3px 5px 0px #ccc;     position: absolute;     z-index: 300;     display: block;     padding: 0;     margin: 0;     border: solid 2px #eee;     border-bottom: solid 1px #fefefe; }  #first {     position: absolute;     background: none;     width: 800px;     height: 50px;     box-shadow: 0px 10px 50px 5px #000;     margin-left: -400px;     top:-20px;     left: 50%;       z-index: 100; }  #second {     left: 50%;       position: absolute;     width: 900px;     z-index: 200;     margin-left: -450px;     height:80px;     top: 15px;  background: radial-gradient(ellipse @ center, rgba(255,255,255,1) 0%,rgba(255,255,255,1) 15%,rgba(255,255,255,1) 25%,rgba(255,255,255,0.28) 79%,rgba(255,255,255,0) 100%); /* w3c */ } 

Comments

Popular posts from this blog

Perl - how to grep a block of text from a file -

delphi - How to remove all the grips on a coolbar if I have several coolbands? -

javascript - Animating array of divs; only the final element is modified -