Source code
Revision control
Copy as Markdown
Other Tools
<!DOCTYPE html>
<title>flexbox | flex-direction: column</title>
<style>
div {
background: blue;
margin: 1em 0;
border: 1px solid black;
}
span {
background: white;
margin: 1em;
width: 8em;
display: block;
}
span~span {
margin: 2em 1em 1em;
}
</style>
<div>
<span>filler</span>
<span>filler</span>
<span>filler</span>
<span>filler</span>
</div>