<!DOCTYPE html> | |
<title>flexbox | flex-direction: column-reverse</title> | |
<link rel="author" href="http://opera.com" title="Opera Software"> | |
<style> | |
div { | |
background: blue; | |
margin: 1em 0; | |
border: 1px solid black; | |
} | |
span { | |
background: white; | |
margin: 1em; | |
width: 8em; | |
display: block; | |
} | |
.test { | |
background: #ffcc00; | |
} | |
span~span { | |
margin: 2em 1em 1em; | |
} | |
</style> | |
<div> | |
<span>damer</span> | |
<span>damer</span> | |
<span>damer</span> | |
<span class="test">damer</span> | |
</div> |