#hexagon {
font-size: 20px;
width: 1em;
height: 0.58em;
background: #fff;
color: #fff;
display: block;
position: relative;
}
#hexagon:before {
content: "";
position: absolute;
top: -0.25em;
left: 0;
width: 0;
height: 0;
border-color: inherit;
border-left: 0.5em solid transparent;
border-right: 0.5em solid transparent;
border-bottom: 0.25em solid
}
#hexagon:after {
content: "";
position: absolute;
bottom: -0.25em;
left: 0;
width: 0;
height: 0;
border-color: inherit;
border-left: 0.5em solid transparent;
border-right: 0.5em solid transparent;
border-top: 0.25em solid;
}
#hexagon:hover {
background-color: #FFC500;
color: #FFC500;
}