"Hexa shape button"
Bootstrap 4.1.1 Snippet by sn0w

<link href="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/css/bootstrap.min.css" rel="stylesheet" id="bootstrap-css"> <script src="//maxcdn.bootstrapcdn.com/bootstrap/4.1.1/js/bootstrap.min.js"></script> <script src="//code.jquery.com/jquery-1.11.1.min.js"></script> <!------ Include the above in your HEAD tag ----------> <div id="home_quicklinks"> <a class="quicklink link1" href="#"> <span class="ql_caption"> <span class="outer"> <span class="inner"> <h2>Aktivere</h2> </span> </span> </span> <span class="ql_top"></span> <span class="ql_bottom"></span> </a> <a class="quicklink link2" href="#"> <span class="ql_caption"> <span class="outer"> <span class="inner"> <h2>Endre passord</h2> </span> </span> </span> <span class="ql_top"></span> <span class="ql_bottom"></span> </a> <a class="quicklink link3" href="#"> <span class="ql_caption"> <span class="outer"> <span class="inner"> <h2>Glemt passord </h2> </span> </span> </span> <span class="ql_top"></span> <span class="ql_bottom"></span> </a> <div class="clear"></div> </div>
#home_quicklinks { padding: 20px 0; text-align: center; } a.quicklink.link1 { background: #000033; } a.quicklink { display: inline-block; width: 300px; height: 170px; position: relative; margin: 90px 30px; } a.quicklink .ql_caption { display: block; height: 100%; width: 100%; position: relative; } .outer { display: table; position: relative; vertical-align: middle; text-align: center; height: 100%; width: 100%; border-spacing: 0px; padding: 0px; } .inner { display: table-cell; position: relative; vertical-align: middle; text-align: center; height: 100%; width: 100%; border-spacing: 0px; padding: 0px; } a.quicklink .ql_caption h2 { margin: 0px; padding: 0px; line-height: 1.46em; color: #fff; } a.quicklink.link1 .ql_top { border-bottom-color: #000033; } a.quicklink.link1 .ql_bottom { border-top-color: #000033; } .ql_top { bottom: 170px; border-bottom: 89px solid #ccc; } .ql_bottom { top: 170px; border-top: 89px solid #ccc; } .ql_top, .ql_bottom { position: absolute; left: 0px; width: 0px; border-left: 151px solid transparent; border-right: 151px solid transparent; } a.quicklink.link2 { background: #003399; } a.quicklink.link2 .ql_top { border-bottom-color: #003399; } a.quicklink.link2 .ql_bottom { border-top-color: #003399; } a.quicklink.link3 .ql_top { border-bottom-color: #99CCFF; } a.quicklink.link3 .ql_bottom { border-top-color: #99CCFF; } a.quicklink.link3 { background: #99CCFF; } a.quicklink { font-size: 36px; font-weight: 500; text-decoration:none; } .hexagon { position: relative; width: 300px; height: 173.21px; margin: 86.60px 0; background-image: url(http://csshexagon.com/img/meow.jpg); background-size: auto 334.8632px; background-position: center; box-shadow: 0 0 20px rgba(0,128,192,0.6); border-left: solid 5px #4a401c; border-right: solid 5px #4a401c; } .hexTop, .hexBottom { position: absolute; z-index: 1; width: 212.13px; height: 212.13px; overflow: hidden; -webkit-transform: scaleY(0.5774) rotate(-45deg); -ms-transform: scaleY(0.5774) rotate(-45deg); transform: scaleY(0.5774) rotate(-45deg); background: inherit; left: 38.93px; box-shadow: 0 0 20px rgba(0,128,192,0.6); } /*counter transform the bg image on the caps*/ .hexTop:after, .hexBottom:after { content: ""; position: absolute; width: 290.0000px; height: 167.4315780649915px; -webkit-transform: rotate(45deg) scaleY(1.7321) translateY(-83.7158px); -ms-transform: rotate(45deg) scaleY(1.7321) translateY(-83.7158px); transform: rotate(45deg) scaleY(1.7321) translateY(-83.7158px); -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; background: inherit; } .hexTop { top: -106.0660px; border-top: solid 7.0711px #4a401c; border-right: solid 7.0711px #4a401c; } .hexTop:after { background-position: center top; } .hexBottom { bottom: -106.0660px; border-bottom: solid 7.0711px #4a401c; border-left: solid 7.0711px #4a401c; } .hexBottom:after { background-position: center bottom; } .hexagon:after { content: ""; position: absolute; top: 2.8868px; left: 0; width: 290.0000px; height: 167.4316px; z-index: 2; background: inherit; }

Related: See More


Questions / Comments: