I am trying to create a tag shape with CSS. With following code, I can display the tag correctly with the arrow on the left side, How can I move the arrow to the right side of the div instead of the left?
HTML:
<div class="tags">
<a href="#">tag</a>
</div>
CSS:
.tags a{
float:left;
height:24px;
line-height:24px;
position:relative;
font-size:11px;
margin-left:20px;
padding:0 10px 0 12px;
background:#0089e0;
color:#fff;
text-decoration:none;
}
.tags a:before{
content:"";
float:left;
position:absolute;
top:0;
left:-12px;
width:0;
height:0;
border-color:transparent #0089e0 transparent transparent;
border-style:solid;
border-width:12px 12px 12px 0;
}