Say I have a bunch of P, LI, or DIV elements, with nothing between them. I want to control the vertical spacing between them, so they don\'t fit so tightly. But I don\'t want
This can also be done using :last-child or :first-child
:last-child
:first-child
Here is an example:
p, li, div { margin-bottom: 10px; } p:last-child, li:last-child, div:last-child { margin-bottom: none; }