I have a <div>
that is filled with varying block elements (e.g. <p>
, <ul>
, <ol>
, <blockquote>
, etc.). I'm looking to control only the spacing between those child block elements. I also want there to be no spacing between the child block elements and the top and bottom of the parent div.
I've played with a few solutions. The main one being a mess of a rule using the adjacent sibling combinator. The other being setting the margin-top
value to the desired spacing and then using the :first-child
pseudo selector.
Are there any cleaner solutions with a decent amount of compatibility?
Thanks.