Skip to content

Instantly share code, notes, and snippets.

@mishunov
Created June 20, 2012 18:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mishunov/2961351 to your computer and use it in GitHub Desktop.
Save mishunov/2961351 to your computer and use it in GitHub Desktop.
Tag labels
/* Tag labels */
a {
color: #fff;
text-decoration: none;
font-family: sans-serif;
}
.tag {
background: #BA925E;
padding: .5em 1em .5em .5em;
line-height: 1em;
display: inline-block;
position: relative;
margin-left: 1.5em;
border-radius: 0 .5em .5em 0;
}
.tag:before {
position: absolute;
top: 0;
left: -1em;
content: "";
display: block;
width: 0;
height: 0;
*line-height: 0;
border-left:none;
border-top: 1em solid transparent;
border-right: 1em solid #BA925E;
border-bottom: 1em solid transparent;
}
.tag:after {
position: absolute;
top: 50%;
left: -0.2em;
content: "";
margin-top: -0.2em;
display: block;
width: .4em;
height: .4em;
background: #fff;
border-radius: 50%;
}
<a href="#" class="tag">web</a>
<a href="#" class="tag">development</a>
{"view":"split-vertical","fontsize":"100","seethrough":"","prefixfree":"1","page":"all"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment