I have been reading widely about this but haven't been able to solve it to my satisfaction.
I have a div (<section>
) that contains one <p>
and 3 <div>
s. I would like to distribute the 3 divs equally in one line so that the left border of the 1st div is on the left border of the document (<body>
) and the the right border of the 3rd div on the right border of the document.
I don't want to use float because the backround-color would vanish.
I have tried flex but justify-content
did not yield the expected outcome.
Here's the code on JSBIN.
Thank you!