css3 - Is it possible to create a notch in a shadowed box with pure css? -


i'm struggling layout i'm asking myself if possible pure css or if have use images.

what want achieve this:

notch in box

so <body> yellow area whereas white box <header> area sort of cut off. shadow , rounded corners tricky stuff here.

i fiddled around bit.

add div inside header , give position:absolute. style dive according mock. (i couldn't bottom curves :( )

header {     background: white;     box-shadow: rgba(0, 0, 0, 0.4) 0 0 8px;     height: 100px;     position:relative } .curve{     background: #fcf5e5;      border-radius:14px;     box-shadow: inset 1px 4px 8px -5px #333;     -moz-box-shadow: inset 1px 4px 8px -5px #333;     -webkit-box-shadow: inset 1px 4px 8px -5px #333;     height:60px;     width:250px;     position:absolute;     left:0; right:0;     margin:0 auto;     bottom:-9px } 

demo


Comments

Popular posts from this blog

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -

node.js - Bad Request - node js ajax post -