What do you think about adding something like this:
p:first-child, h1:first-child, h2:first-child, ... { margin-top: 0; } p:last-child, h1:last-child, h2:last-child, ... { margin-bottom: 0; }
or even:
*:first-child { margin-top: 0; } *:last-child { margin-bottom: 0; }
I seem to always be removing margin top on the first item and margin bottom on the last item, since it pushes a container out too far or something.
Are you sure you want to hide this comment? It will become hidden in your post, but will still be visible via the comment's permalink.
Hide child comments as well
Confirm
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
What do you think about adding something like this:
or even:
I seem to always be removing margin top on the first item and margin bottom on the last item, since it pushes a container out too far or something.