I'm looking to achieve a specific layout in Bootstrap where the display changes based on whether an image is present within a row.
When there is both an image and text content, I want the image to occupy a column size of 4 while the text content sits adjacent in a column size of 8. enter image description here
If the image is absent, I'd like the text content to take its place in the layout.
<div class="container ">
<div class="row ">
<div class="col-md-4"><img src="https://via.placeholder.com/150/b0f7cc" title="picture" style="width:100px;"></div>
<div class="col-md-8">
<div>
textdffjjfjfjfj
</div>
</div>
</div>
</div>
Can someone guide me on how to implement this?