If I set display:inline for any element then will margin, padding, width, height not affect on that element?
Is it necessary to use float:left or display:block or display:inline-block to use margin, padding, width, height on that element?
Padding will work for inline. Height and width however will not.
http://jsfiddle.net/d89Wd/
Edit:corrected
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With