<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;
}
<style type="text/css">
#enter {display:none}
.slide {border:1px solid grey; padding:20px; width:40px; margin:10px; display:none}
.check {border:1px solid red; padding:10px; width:10px; margin:8px; display:inline-block;}
</style>
<div id="s1" class="slide">1</div>
<div id="s2" class="slide">2</div>
<div id="s3" class="slide">3</div>
<div id="s4" class="slide">4</div>
<div id="prev" class="check">←</div>
<div id="next" class="check">→</div>
<script type="text/javascript">
var count = 1;
$(document).ready(function() {
$('#s1').show();
});
$('#next').on('click', function(){
$('#s' + count).hide();
$('#s' + ++count).fadeIn();
if(count == 5) { count = 1; $('#s1').fadeIn(); }
});
$('#prev').on('click', function(){
$('#s' + count).hide();
$('#s' + --count).fadeIn();
if(count == 0) { count = 4; $('#s4').fadeIn(); }
});
</script>