Imagine that these red lines extend until they touch each other. This square (rotated by 45%) has a full border, you just do not see the "cut-off" corners due to overflow: hidden;
This seems to work (but does it by adding two additional divs, so there may be a better way):
<div class='octagonWrap'> <div class='octagon'></div> <div class='vert'> </div> <div class='hort'> </div> </div>
and then add tihs css:
.vert { position: absolute; left: 60px; border-top: 3px solid red; border-bottom: 3px solid red; height: 194px; width: 80px; } .hort { position: absolute; top: 60px; border-left: 3px solid red; border-right: 3px solid red; width: 94px; height: 80px; }
John hascall
source share