Should we always use Padding in place of margin wherever is possible to avoid situations of "Double Margin" bug?
Should we always use Padding in place of margin wherever is possible to avoid situa开发者_运维问答tions of "Double Margin" bug?
No. Setting display: inline;
is a simple workaround that doesn't affect other browsers.
Depends on the design. There are many contexts where using padding instead of margins doesn't make sense.
If you're having trouble with a browser bug then by all means try using padding instead of margin, but it's throwing the baby out with the bathwater to say "I will never use padding ever again!"
精彩评论