I am currently facing challenges with incorporating Bootstrap alongside CSS and am in the process of familiarizing myself with Bootstrap documentation using Flex. I am struggling to create more space as the text continues to closely follow the icon when I apply margin. I am seeking a solution to achieve the desired result. I am working with Bootstrap 4.
My Result:
The result I am aiming for:
Below is the code utilizing Bootstrap and CSS from the First Image (My Result)
div.order-1,div.order-2,div.order-3 {
color: #3379EA;
margin: auto;
margin-top:30px;
}
div.order-1 {
border-right: 3px solid #3379EA;
}
div.order-3 {
border-left: 3px solid #3379EA;
}
i.fas {
color: #3379EA;
}
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" integrity="sha384-JcKb8q3iqJ61gNV9KGb8thSsNjpSL0n8PARn9HuZOnIxN0hoP+VmmDGMN5t9UJ0Z" crossorigin="anonymous">
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css" rel="stylesheet"/>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="b2c2ddc2c2d7c09cd8c1f2839c83849c83">[email protected]</a>/dist/umd/popper.min.js" integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/js/bootstrap.min.js" integrity="sha384-B4gt1jrGC7Jh4AgTPSdUtOBvfO8shuf57BaghqFfPlYxofvL8/KUEfYiJOMMV+rV" crossorigin="anonymous"></script>
<div class="d-flex flex-nowrap justify-content-end" style="margin-top:30px;margin:auto;"><!-- I put margin again to make them center-->
<div class="order-1 p-2 justify-content-end text-center font-weight-bold">Smart<br>
<i class="fas fa-brain fa-2x"></i></div>
<div class="order-2 p-2 justify-content-end text-center font-weight-bold" >Wise<br>
<i class="fas fa-lightbulb fa-2x"></i></div>
<div class="order-3 p-2 justify-content-end text-center font-weight-bold">Accountable<br>
<i class="fas fa-users fa-2x"></i></div>
</div>
</div>
</div>
</div>
Thank you for your assistance.