Images for demo purpose, use images at your own risk.
<!-- HTML code -->
<section class="cm-item-23 hero-section">
<div class="hero-container">
<div class="content-wrapper">
<div class="left-area">
<h6>25% off for new client</h6>
<h1>We Love the Job You Hate !</h1>
<p>Samsa was a travelling salesman and above it there hung a picture that he had recently cut out of
an</p>
<div class="btn-wrapper">
<a class="btn-1" href="#">More About Us</a>
<a class="btn-2" href="#">Get A Service</a>
</div>
</div>
<div class="right-area">
<div class="hero-img">
<img src="http://cdn.codemela.com/wp-content/uploads/2024/08/hero-img.png" alt="">
</div>
</div>
</div>
</div>
</section>
<!-- CSS code -->
<style>
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
.cm-item-23.hero-section {
background: url(http://cdn.codemela.com/wp-content/uploads/2024/08/hero-static-bg.b3e1cc0666d4d0701221.png);
background-position: top;
background-size: cover;
height: auto;
background-color: #e1f8fc;
width: 100%;
padding-top: 100px;
overflow: hidden;
}
.cm-item-23.hero-section .hero-container {
max-width: 85%;
margin: 0 auto;
}
.cm-item-23.hero-section .content-wrapper {
display: flex;
justify-content: space-between;
align-items: center;
}
.cm-item-23.hero-section .content-wrapper .left-area {
width: 45%;
}
.cm-item-23.hero-section .content-wrapper .left-area h6 {
background: #237cf5;
border-radius: 3px;
color: #fff;
display: inline-block;
font-size: 15px;
line-height: 32px;
padding: 0 20px;
}
.cm-item-23.hero-section .content-wrapper .left-area h1 {
font-size: 80px;
margin: 10px 0 20px;
text-transform: capitalize;
color: #0e3c7b;
}
.cm-item-23.hero-section .content-wrapper .left-area p {
color: #57667e;
font-size: 20px;
font-weight: 600;
margin-bottom: 30px;
line-height: 26px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1 {
background-color: #feea2b;
border: 0;
border-radius: 55px;
color: #0e3c7b;
display: inline-block;
font-size: 16px;
font-weight: 700;
padding: 15px 30px;
text-transform: capitalize;
text-decoration: none;
margin-right: 20px;
transition: all .2s;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1:hover {
background-color: #0b6ef3;
color: #fff;
text-decoration: none;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2 {
background-color: #fff;
border: 1px solid #237cf5;
border-radius: 55px;
color: #0e3c7b;
display: inline-block;
font-size: 16px;
font-weight: 700;
padding: 15px 30px;
text-transform: capitalize;
text-decoration: none;
transition: all .2s;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2:hover {
background-color: #0b6ef3;
color: #fff;
text-decoration: none;
}
.cm-item-23.hero-section .content-wrapper .right-area {
width: 55%;
}
.cm-item-23.hero-section .content-wrapper .right-area .hero-img img {
max-width: 100%;
}
@media (max-width: 600px){
.cm-item-23.hero-section .hero-container{
max-width: 90%;
}
.cm-item-23.hero-section .content-wrapper{
display: block;
}
.cm-item-23.hero-section .content-wrapper .left-area{
width: 100%;
text-align: center;
}
.cm-item-23.hero-section .content-wrapper .left-area h1{
font-size: 45px;
}
.cm-item-23.hero-section .content-wrapper .left-area p{
font-size: 16px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1{
margin-right: 0;
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .right-area{
width: 100%;
margin-top: 50px;
}
}
@media (min-width: 600px) and (max-width: 767px){
.cm-item-23.hero-section .hero-container{
max-width: 90%;
}
.cm-item-23.hero-section .content-wrapper{
display: block;
}
.cm-item-23.hero-section .content-wrapper .left-area{
width: 100%;
text-align: center;
}
.cm-item-23.hero-section .content-wrapper .left-area h1{
font-size: 55px;
}
.cm-item-23.hero-section .content-wrapper .left-area p{
font-size: 18px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1{
margin-right: 20px;
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .right-area{
width: 100%;
margin-top: 50px;
}
}
@media (min-width: 767px) and (max-width: 1020px){
.cm-item-23.hero-section .hero-container{
max-width: 90%;
}
.cm-item-23.hero-section .content-wrapper .left-area{
width: 100%;
}
.cm-item-23.hero-section .content-wrapper .left-area h1{
font-size: 45px;
}
.cm-item-23.hero-section .content-wrapper .left-area p{
font-size: 16px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .right-area{
width: 100%;
margin-top: 50px;
}
}
@media (min-width: 1020px) and (max-width: 1400px){
.cm-item-23.hero-section .hero-container{
max-width: 95%;
}
.cm-item-23.hero-section .content-wrapper .left-area{
width: 100%;
}
.cm-item-23.hero-section .content-wrapper .left-area h1{
font-size: 65px;
}
.cm-item-23.hero-section .content-wrapper .left-area p{
font-size: 18px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-1{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .left-area .btn-wrapper .btn-2{
font-size: 15px;
}
.cm-item-23.hero-section .content-wrapper .right-area{
width: 100%;
margin-top: 50px;
}
}
</style>