Why inline-block is ingnored when using float

Why inline-block is ingnored when using float
0

#1

inline-block is ignored due to the float. If ‘float’ has a value other than ‘none’, the box is floated and ‘display’ is treated as ‘block’


#2

Because they way inline-block and float work are similar.

Take a look at this article.


#3

I get it, I replaced float by text-align and kept inline block

Thanks


#4

Useful article thanks for sharing