The difference between padding and margin is a bit of a quandary for CSS newcomers. This post explains the difference between them.

@kev Your 512KB club banner has href set to “taget”. The typo is present even in the example codepen for the banners.

@thumb good catch, thanks! Just fixed it in both places.

@kev The way I do it is always start with padding, which I never want. I then get pissed and change it to margin. I see nothing wrong with that.

@kev don't forget to cover the weird margin behavior of an h1 element with a margin at the top of the document causing what appears to be a margin applied to the body tag. 😉

Sign in to participate in the conversation

Fosstodon is an English speaking Mastodon instance that is open to anyone who is interested in technology; particularly free & open source software.