by jordwest · 5y ago · 0 comments
.vertical-stack > :not(:last-child) {
margin-bottom: 8px
}
Just add the class to a parent and all the children will have spaced between, but no spacing around the edges. It’s then easy to add padding to the parent: <div class=“vertical-stack”>
<h1>Heading</h1>
<p>Paragraph</p>
<p>Paragraph</p>
</div>edit: realise this is at the end of the article so you probably already know this
I think that average quality websites made for public Internet should use only features that have been supported at least for 5 years in major browsers including mobile. And a high quality site must be usable in 10-years old browser.