JSFiddle - React, Tailwind, and code Playground
by adonis11
HTML
<section class="image_bg">
<div class="wrap">
<!---start-da-slider----->
<div class="text">
<h2><span>Трудно быть</span> "милым"</h2>
<p>Каждый день я просыпаюсь с одной единственной мыслью о том, что как трудно быть милым. Но не подаю вида, что мне надоели ваши "поглаживания" и "сюсюкания".</p>
<a href="#" class="da-butt">Узнайте больше</a>
<a href="#portfolio" class="scroll"><span class="butt-img"> </span> </a>
</div>
<!---//End-da-slider----->
</div>
</section>
CSS
.image_bg{
background: url(https://myrusakov.ru/images/articles/html_coding_banner.jpg) no-repeat;
background-size: 100% 100%;
}
.text {
padding: 20% 0%;
}
.text h2 {
color: #FFF;
font-size: 3em;
font-weight: 700;
z-index: 10;
text-align: center;
position: relative; /* относительное позиционирование */
margin-top: -140px;
}
.text h2 span {
font-size: 1em;
font-weight: 300;
}
.text p {
color: #FFF;
font-size: 1.2em;
text-align: center;
margin: 1.5em auto;
width: 77%;
font-weight: 200;
line-height: 1.4em;
}
.text .da-butt {
background-color: #a97b7b;
display: block;
color: #FFF;
font-size: 1em;
text-transform: uppercase;
margin: 0 auto;
width: 10%;
text-align: center;
padding: 1em 2em;
}
.da-butt {
position: absolute; /* абсолютное позиционирование */
left: 750px; top: 370px; /* отступы от краев браузера */
}
.text .da-butt:hover
{
background:#d0a5a5;
}
.butt-img{
width: 50px;
height: 50px;
display: block;
margin: 2em auto 1em;
background: url(https://myrusakov.ru/images/articles/html_coding_buttonimg.png);
-webkit-transition: all 0.4s ease-in-out;
-moz-transition: all 0.4s ease-in-out;
-o-transition: all 0.4s ease-in-out;
-ms-transition: all 0.4s ease-in-out;
transition: all 0.4s ease-in-out;
position: relative; /* абсолютное позиционирование */
left: 210px; top: 130px; /* отступы от родителя */
}
.butt-img:hover{
width: 50px;
height: 50px;
display: block;
background: url(https://myrusakov.ru/images/articles/html_coding_buttonimgh.png);
}