As you might have guessed this image is part of a mail envelope shape which I would like to create with CSS3 if possible. I've made the other parts but this one's tricky. The shape needs both a triangular cut on both sides and rounded corners (presumably border-radius-bottom-left/border-radius-bottom-right). It also has to have the ability to cast a small shadow.
This is what I've done so far -
#envelope {
background: #fff;
}
.closed {
width: 860px;
height: 0;
border-top: 80px solid fff;
border-left: 50px solid transparent;
border-right: 50px solid transparent;
-moz-box-shadow: 0 1px 5px #ccc;
-webkit-box-shadow: 0 1px 5px #ccc;
box-shadow: 0 1px 5px #ccc;
}
jsFiddle - http://jsfiddle.net/hsYUy/
Here's my try, with just one div
http://jsfiddle.net/Simo990/Z8cPc/4
My attempt, I only used the shadow and rotate properties for chrome, but you can add it for other browsers,
http://jsfiddle.net/hsYUy/7/
A 1 element solution using 2D skew transforms on pseudo-elements.
DEMO
Result:
HTML:
Here's 3 approximations http://jsfiddle.net/JKirchartz/RNChA/ using only border-radius, should work in all browsers with the proper prefixes.
HTML: