Whats the difference between display inline and inline-block | SoloLearn: Learn to code for FREE!

0

Whats the difference between display inline and inline-block

I've searched for this on google but no luck in figuring out Can explain it with an example code or something like please

6/3/2020 3:32:45 AM

Sainath Dora

2 Answers

New Answer

+3

https://code.sololearn.com/WUWrSMiCq8v6/?ref=app

0

Most of the differences described here: https://www.w3schools.com/css/css_inline-block.asp The one I've just apparently found from Calviղ 's code is, margins don't get collapsed in inline-block, https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model/Mastering_margin_collapsing