JSFiddle - React, Tailwind, and code Playground
by seefeld
HTML
<ul id="hex">
<li class="p1"><a href="../menu/"><b></b><span>DEMOS</span><em></em></a></li>
<li><a href="index.html"><b></b><span>MENUS</span><em></em></a></li>
<li class="p2"><a href="../layouts/"><b></b><span>LAYOUTS</span><em></em></a></li>
<li class="p2"><a class="inner" href="../boxes/"><b></b><span>BOXES</span><em></em></a></li>
<li class="p2"><a href="../mozilla/"><b></b><span>MOZILLA</span><em></em></a></li>
<li class="p1 p2"><a href="../ie/"><b></b><span>EXPLORER</span><em></em></a></li>
<li class="p2"><a href="../opacity/"><b></b><span>OPACITY</span><em></em></a></li>
</ul>
CSS
#hex {padding:0; margin:0 auto; list-style:none; width:325px;}
#hex li {display:block; float:left; width:104px; margin-right:4px; height:120px;}
#hex li.p1 {padding-left:54px;}
#hex li.p2 {margin-top:-26px;}
#hex li a {text-decoration:none; color:#000; cursor:pointer;}
#hex li a b {display:block; width:0; height:0; overflow:hidden; border-bottom:30px solid #ec0; border-left:52px dotted transparent; border-right:52px dotted transparent;}
#hex li a span {display:block; width:104px; height:60px; line-height:59px; text-align:center; background:#ec0; font-size:11px; font-family: arial, veradana, sans-serif;}
#hex li a em {display:block; width:0; height:0; overflow:hidden; border-top:30px solid #ec0; border-left:52px dotted transparent; border-right:52px dotted transparent;}
/* hack for IE5.5 */
* html #hex li a b, * html #hex li a em {width:104px; height:30px; w\idth:0; he\ight:0;}
#hex li a.inner b {border-bottom-color:#c60;}
#hex li a.inner span {background:#c60;}
#hex li a.inner em {border-top-color:#c60;}
#hex li a:hover {white-space:normal; color:#fff;}
#hex li a:hover b {border-bottom-color:#c90;}
#hex li a:hover span {background:#c90;}
#hex li a:hover em {border-top-color:#c90;}
#hex li a.inner:hover b {border-bottom-color:#a40;}
#hex li a.inner:hover span {background:#a40;}
#hex li a.inner:hover em {border-top-color:#a40;}