hexagon shape
heaxgon shape for requests
by karthick Chandran
HTML
<div class="hexagon"><span> </span></div>
CSS
.hexagon {
position: relative;
width: 200px;
height: 115.47px;
background-color: #ffffff;
margin: 57.74px 0;
border-left: solid 3px #c08d63;
border-right: solid 3px #c08d63;
border-radius: 5px;
}
.hexagon:before,
.hexagon:after {
content: "";
position: absolute;
z-index: 1;
width: 141.42px;
height: 141.42px;
-webkit-transform: scaleY(0.5774) rotate(-45deg);
-ms-transform: scaleY(0.5774) rotate(-45deg);
transform: scaleY(0.5774) rotate(-45deg);
background-color: inherit;
left: 26.2893px;
}
.hexagon:before {
top: -70.7107px;
border-top: solid 4.2426px #c08d63;
border-right: solid 4.2426px #c08d63;
}
.hexagon:after {
bottom: -70.7107px;
border-bottom: solid 4.2426px #c08d63;
border-left: solid 4.2426px #c08d63;
}