The shape under red border:
I tried very hard to achieve this shape using CSS3 but all time I failed. I also tried to add border-bottom and border-left. See CSS code for understanding what I was doing:
#trapezoid {
background: blue;
height: 100px;
width: 100px;
margin: auto;
}
#trapezoid:before {
content: "";
position: absolute;
border-top: 50px solid red;
border-left: 50px solid transparent;
margin: 50px 0px 0px -50px;
transform: rotate(0deg);
}
#trapezoid:after {
content: "";
position: absolute;
border-top: 50px solid red;
border-right: 50px solid transparent;
margin: 50px 0px 0px 100px;
transform: rotate(0deg);
}
<div id="trapezoid"></div>
This CSS shape almost close to my requirement but we can't use image in extended area. Please suggest me some other method. Challenge is this, I have to create same layout and at place of grey background I've to show some content
