I am creating an eCommerce website. I added two banners to my site. I want to display the banner image horizontally in the same line. but the problem is the banner image is showing vertically. One banner image appears below another image.
How to align those banner images horizontally?
.banner-box {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
min-width: 580px;
height: 50vh;
background-size: cover;
background-position: center;
padding: 10px;
background-image: url(img/banner/b17.jpg);
}
.banner-box2 {
display: flex;
flex-direction: column;
justify-content: center;
align-items: flex-start;
min-width: 580px;
height: 50vh;
background-size: cover;
background-position: center;
padding: 10px;
background-image: url(/img/banner/b18.jpg);
}
<section id="sm-banner" class="section-p1">
<div class="banner-box">
<h4>Crazy deals</h4>
<h2>buy 1 get 1 Free</h2>
<button>Learn More</button>
</div>
<div class="banner-box2">
<h4>Crazy deals</h4>
<h2>buy 1 get 1 Free</h2>
<button>Learn More</button>
</div>
</section>
