CSS3-Labels

<!-- http://html5snippets.com/snippets/46-css3-label-tag# --> Der ursprüngliche Ansatz wurde von mir ittels :before und :after verschlankt. Zusätzlich habe ich das Ganze auf einen Link angewendet.

by J. Albert Bowden

HTML

<script src="https://raw.github.com/LeaVerou/prefixfree/master/prefixfree.min.js"></script>
  <!-- http://html5snippets.com/snippets/46-css3-label-tag# -->
    <span class="tag">
        this is a tag
    </span>

    <span class="tag">
        that's one badass
    </span>

    <span class="tag">
        more tags are awesome
    </span>

    <a href="#" class="tag">
        As a link it is with use, too!
    </a>

CSS

* {padding:0; margin:0;}
body {font: 10px/1 sans-serif; padding:40px;}

.tag {
    background-image: -webkit-gradient(
        linear,
        left bottom,
        left top,
        color-stop(0.43, rgb(250,192,75)),
        color-stop(0.7, rgb(252,219,110))
    );
    background-image: -moz-linear-gradient(
        center bottom,
        rgb(250,192,75) 43%,
        rgb(252,219,110) 70%
    );
    border: 1px solid #cc912d;
    color: #986538;
    display: block;
    float: left;
    clear: both;
    font-weight: 700;
    margin: 0 0 20px;
    padding: 6px 6px 6px 8px;
    position: relative;
    text-transform: lowercase;
    z-index: 1;
    border-radius: 0 3px 3px 0;
}

.tag:after {
    content: "";
    display: block;
    background-image: -webkit-gradient(
        linear,
        100% 100%,
        0 0,
        color-stop(.3, rgb(250,192,75)),
        color-stop(.7, rgb(252,219,110)));
    border: 1px solid #cc912d;
    border-right: 0;
    border-top: 0;
    position: absolute;
    height: 15px;
    left: -9px;
    top: 3px;
    width: 15px;
    z-index: -1;
    -webkit-transform: rotate(45deg);
    -moz-transform: rotate(45deg);
    transform: rotate(45deg);
}

.tag:before {
    content:"";
    display: block;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: inset 1px 0 1px #eee;
    border: 1px solid #cc912d;
    position: absolute;
    height: 5px;
    top: 8px;
    left: -3px;
    width: 5px;
}

a.tag { text-decoration: none;text-transform: none;}
a.tag:hover { text-decoration: underline;}