ken ken - 1 year ago 89
CSS Question

Css margin-top vs margin-bottom

If you have a sequence of block elements and you wanted to place margin in between them.

Which do you prefer, margin-top or margin-bottom or both? Why?

Answer Source

I always use margin-bottom, which means there is no unnecessary space before the first element.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download