I have a coding dilemma where I am trying to display two items in the same row with a 12px gap between them, but my current method is not working as desired. I want there to be space between the A's and B's without resorting to traditional techniques like margin or padding.
<div class="container">
<div>
AAA
</div>
<div>
BBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBBB
</div>
</div>
css
.container {
display:inline-flex;
flex-wrap:wrap;
gap:12px;
}
I found this tutorial from Cory Ryland's blog which inspired me to try this approach.
Can anyone offer advice or suggestions on how to achieve this?
Thank you