Reputation: 13
Can anyone provide any good examples of how to use inline-block versus just regular display inline? I'm having trouble grasping the concept, if anyone can do a little demo on jsfiddle why you would use one over the other, that'd be much appreciated.
Upvotes: 1
Views: 177
Reputation: 2356
I Hope Below link should be more helpful for you.
http://dustwell.com/div-span-inline-block.html
Upvotes: 1
Reputation: 39456
A couple of differences:
inline-block
elements don't wrap onto new linesinline-block
elements can have padding
and margin
applied with expected results.Upvotes: 0