+ 1
What is the difference between inline-block and block?
4 Réponses
+ 10
Inline-block elements:
allow other elements to sit to their left and right
respect top & bottom margins and padding
respect height and width
+ 8
Inline elements:
respect left & right margins and padding, but not top & bottom.
cannot have a width and height set.
allow other elements to sit to their left and right.
+ 7
Block elements:
respect all of those
force a line break after the block element
0
great