Inline-block element use cases

That is correct about the block-direction. In languages like English where characters flow horizontally, the margin-top and margin-bottom on inline elements are ignored. The margin-left and margin-right properties will work.

No, the height of the element doesn’t contain the padding values. Visually we can see it, but the actual height calculation (like via getComputedStyle) will just return auto.

Great questions!

:slight_smile:

1 Like