Note: The Listed platform will permanently shut down December 31, 2026. Your data published on Listed will still be available in your personal Standard Notes account. Learn more

How to Sink a Child Element to Bottom with CSS

Example HTML

<div class="a">
    <div>foo</div>
    <div>bar</div>
    <div>foobar</div>
    <div>barfoo</div>
</div>

The CSS

.a {
    display:flex; flex-direction:column;
}
.a >*:nth-child(1) {
    order:1; /* Other divs have order empty ie zero and appear above */
}

You'll only receive email when they publish something new.

More from Arno
All posts