<div class="parent">
<div class="item">
</div>
<div class="label">
asdasdasd
</div>
</div>
body {
background: rgba(12, 77, 162, 0.07);
}
.parent {
position: relative;
width: 300px;
}
.item {
padding: 40px 30px 30px;
width: 250px;
background-color: #fff;
border-radius: 15px;
box-shadow: 0px 0px 18px rgba(171, 171, 175, 0.45);
position: relative;
z-index: 9999;
margin-right: 70px;
}
.label {
position: absolute;
top: 50%;
margin-top: -15px;
right: -70px;
height: 30px;
border-radius: 15px;
background-color: #fff;
width: 80px;
z-index: 1;
display: flex;
justify-content: center;
align-items: center;
}
<div class="section_title">
<span>Блог</span>
</div>
.section_title {
background: url("../img/title_bg.png") no-repeat scroll center center transparent;
width: 976px;
margin: 0px auto;
text-align: center;
}
.section_title span {
font-size: 25px;
text-transform: uppercase;
color: #564D52;
background: none repeat scroll 0% 0% #FFF;
padding: 0px 22px;
}
$(document).ready(function(){
$("ul.subnav").parent().append("<span></span>");
$("ul.topnav li span").click(function() {
$(this).parent().find("ul.subnav").slideDown('fast').show();
$(this).parent().hover(function() {
}, function(){
$(this).parent().find("ul.subnav").slideUp('slow');
});
}).hover(function() {
$(this).addClass("subhover");
$(this).removeClass("subhover");
});
});