Fancy Arrow Label
css only label for a special arrow container
by Mark Nelson
HTML
<div class="goalLabelFixture">
<div class="goalLabel">goal target
<div class="goalArrowOuter">
<div class="goalArrowInner"></div>
</div>
</div>
</div>
CSS
.goalLabelFixture {
width: 76px;
}
.goalLabel {
background-color: #ff6699;
color: #ffffff;
width: 66px;
font-size: 12px;
padding-left: 4px;
line-height: 18px;
float: left;
border-bottom-right-radius: 0;
border-top-right-radius: 0;
border-bottom-left-radius: 4px;
border-top-left-radius: 4px;
position: relative;
}
.goalArrowInner {
transform: rotate(45deg);
-ms-transform: rotate(45deg);
-webkit-transform: rotate(45deg);
-o-transform: rotate(45deg);
-moz-transform: rotate(45deg);
background-color: #ff6699;
width: 16px;
height: 16px;
top: 1px;
left: -9px;
position: relative;
-moz-border-radius: 4px;
border-radius: 4px;
}
.goalArrowOuter {
position: absolute;
top: 0px;
left: 70px;
width: 12px;
height: 18px;
overflow: hidden;
}