How do i make this type of pentagone without -webkit-clip-path
because its doesn\'t work most of the browser like Firefox, IE9.
You can use this approach :
overflow: hidden;
to it.Hover over the image to see how this works :
FIDDLE and snippet:
body {
background: url(http://lorempixel.com/640/480);
}
div {
height: 200px;
width: 200px;
-webkit-transform: rotate(-45deg);
-moz-transform: rotate(-45deg);
transform: rotate(-45deg);
position: relative;
overflow: hidden;
top: 50px;
left: 50px;
}
div:before {
content: "";
position: absolute;
left: 100px;
height: 141px;
width: 212px;
display: block;
background: url(http://i.imgur.com/mI2OFTB.jpg);
background-size: 100%;
transform-origin: 0% 0%;
-webkit-transform: rotate(45deg);
-moz-transform: rotate(45deg);
transform: rotate(45deg);
}
/*Just for demonstration of working*/
div:hover {
overflow: visible;
background: rgba(25, 50, 75, 0.6);
}
Output :