I read about the difference between display: inline
and display: inline-block
. This question is not about their difference but about their usage which is very different.
I don't understand why would I ever need to use display inline.
It seems like inline-block can do everything inline can and more. Wouldn't declaring an element with display: inline-block
without any width, height or vertical margins/padding be the same as declaring the display as inline?
Is there a case where you must use display : inline
while trying to achieve the same goal with display: inline-block
won't work?