Created
April 14, 2017 07:45
-
-
Save TeacherStijn/7482278a44717a15cbdcd14b2f9d449e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!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