Mastodon Feed: Post

Mastodon Feed

collinsworth@hachyderm.io ("Josh Collinsworth") wrote:

In modern CSS, if you find yourself applying margin to items based on their position in a list, you're probably still using outdated techniques.

Most likely, you actually don't want margin there; you want a flex box/grid with gap. No need to uniquely style the first/last item.