<ul class="cp_tag03">
<li><a href="#">Dog<span>4</span></a></li>
<li><a href="#">Cat<span>108</span></a></li>
<li><a href="#">Rabbit<span>15</span></a></li>
</ul>
.cp_tag03 {
margin: 0;
padding: 0;
position: absolute;
top: 50%;
left: 50%;
-webkit-transform: translate(-50%,-50%);
transform: translate(-50%,-50%);
}
.cp_tag03 li {
position: relative;
display: inline-block;
margin: 0 20px 8px 20px;
list-style: none;
}
.cp_tag03 a, .cp_tag03 span {
display: block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.cp_tag03 a {
line-height: 25px;
height: 26px;
padding: 0 13px 0 10px;
text-decoration: none;
color: #ffffff;
border-style: solid;
border-width: 1px 0 1px 1px;
border-color: #00BCD4 #fafafa #00ACC1 #0097a7;
border-radius: 50px 0 0 50px;
background: #26c6da;
text-shadow: 0 -1px rgba(0, 0, 0, 0.3);
}
.cp_tag03 a::after {
position: absolute;
z-index: 2;
top: 10px;
right: -1px;
content: '';
opacity: 0.95;
display: inline-block;
width: 0;
height: 0;
border-style: solid;
border-width: 3px;
border-radius: 10px 0 0 10px;
border-color: #fafafa;
-webkit-transition: 0.3s ease-out;
transition: 0.3s ease-out;
}
.cp_tag03 a:hover:after {
border-color: #FF7043;
}
.cp_tag03 span {
font-size: 0.8em;
line-height: 25px;
position: absolute;
top: 0;
left: 100%;
overflow: hidden;
height: 26px;
max-width: 40px;
padding: 0 7px 0 6px;
color: #555555;
border-width: 1px 1px 1px 0;
border-style: solid;
border-color: #dadada #d2d2d2 #c5c5c5;
border-radius: 0 12px 12px 0;
background: #fafafa;
text-shadow: 0 1px #ffffff;
-webkit-transition: 0.3s ease-out;
transition: 0.3s ease-out;
}
.cp_tag03 li:hover span {
color: #ffffff;
border-color: #FF7043 #FF5722 #D84315;
background: #FF7043;
text-shadow: 0 1px #FF7043;
}