Skip to content

Instantly share code, notes, and snippets.

@TeacherStijn
Created April 14, 2017 07:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save TeacherStijn/7482278a44717a15cbdcd14b2f9d449e to your computer and use it in GitHub Desktop.
Save TeacherStijn/7482278a44717a15cbdcd14b2f9d449e to your computer and use it in GitHub Desktop.
<!DOCTYPE html>
<html>
<head>
<title>Voorbeeld van een flexbox layout met verschillende directions</title>
<style>
#container1 {
display: flex;
flex-direction: row;
}
#container2 {
display: flex;
flex-direction: row-reverse;
}
#container3 {
display: flex;
flex-direction: column;
}
#container4 {
display: flex;
flex-direction: column-reverse;
}
</style>
</head>
<body>
<main>
<h2>row:</h2>
<div id="container1">
<div class="element1">item 1</div>
<div class="element2">item 2</div>
<div class="element3">item 3</div>
</div>
<h2>row-reverse:</h2>
<div id="container2">
<div class="element1">item 1</div>
<div class="element2">item 2</div>
<div class="element3">item 3</div>
</div>
<h2>column:</h2>
<div id="container3">
<div class="element1">item 1</div>
<div class="element2">item 2</div>
<div class="element3">item 3</div>
</div>
<h2>column-reverse:</h2>
<div id="container4">
<div class="element1">item 1</div>
<div class="element2">item 2</div>
<div class="element3">item 3</div>
</div>
</main>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment