https://i.sstatic.net/SHfd0.png
Hey there! I'm looking to create a layout similar to the one shown above. I'm using Bootstrap4 and I know that I can utilize either display:flex
or display:inline-block
to achieve this. However, I'm unsure of which one is best practice for my scenario. Can you provide some guidance on when to use each approach?
Currently, my code looks something like this.
.job-details-container {
display: flex;
}
.job-details-container .job-details-type {
width: 15%
}
<div class="job-details-container">
<div class="job-details-type">Id</div>
<div class="job-details-content">0234</div>
</div>