I've been working on creating a welcome banner for my index page, but I'm facing an issue where the buttons need to be closer to each other. However, I can't seem to figure out how to achieve this. The buttons should be aligned to the right and left to bring them closer, but using flex is not pushing them towards each other as expected.
Below is the code snippet I am currently working with:
<section id="career">
<!--Welcome banner-->
<div class="container-fluid height-51 career-picture d-flex align-items-center justify-content-center">
<div class="career-text">
<div class="row">
<div class="col-md-12">
<div class="display-3 text-white text-center font-proximanovabold custom-font-size-header-title">Company</div>
</div>
<div class="col-md-12">
<div class="h5 text-white text-center font-proximanovalight custom-font-size-header-content">The biggest shipping company on earth</div>
</div>
<div class="col-md-6 text-center">
<button class="btn btn-green text-white custom-font-size-header-button">ButtonOne</button>
</div>
<div class="col-md-6 text-center">
<button class="btn btn-green text-white custom-font-size-header-button">ButtonTwo</button>
</div>
</div>
</div>
</div>
<!--End of welcome banner section-->
</section>
Here are the CSS edits I have made that could potentially be causing the issue:
.height-51{
min-height: 51.5vh;
}
.career-picture{
background: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0, 0, 0, 0.5)), url("../images/career.jpg") center/cover no-repeat;
}
#career .btn{
padding: 12px 24px !important;
}
I'm seeking advice on how to adjust the positioning of the buttons to bring them closer together. Why are they not moving closer when adjusted with margin or padding? Any help would be appreciated. Thank you.