This question is based on this answer: https://stackoverflow.com/a/23876839/994141
I read many threads on this subject, and it seemed to me the best answer because I would like to avoid setting a width
.
But the content at the center isn't well centered but based on the content on the left and on the right.
Proof: https://jsfiddle.net/p7kfuont/ ('b' is not centered on the first line)
Is there a way to improve this code (inline-block
and float
) without setting width
s?