For my layout, I am attempting to create a flex-row with 3 components: [TEXT, IMG, TEXT]. My goal is to have the IMG centered perfectly within the row.
To achieve this, I am aiming to make both of my paragraphs the same width so that the IMG appears centered.
Below is the code snippet I am currently using:
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css" integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js" integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM" crossorigin="anonymous"></script>
<div class="jumbotron shadow-sm">
<div class="d-flex flex-row justify-content-center align-items-center">
<div class="d-flex justify-content-start flex-grow-1 ml-3">
<p>Small content on the left</p>
</div>
<div class="d-flex justify-content-center flex-grow-1">
<img src="https://d1guu6n8gz71j.cloudfront.net/system/video/previews/1939344/big.png?1549617786" width="100px">
</div>
<div class="d-flex justify-content-end flex-grow-1 mr-3">
<p>very big content on the right very big content on the right</p>
</div>
</div>
</div>
I have explored using flex-basis as a solution but have not achieved the desired results yet. There might be something crucial that I am missing.