This file contains hidden or 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
/** | |
* ... | |
*/ | |
.container { width: 100%; background: red; } | |
ul { background: white; display: inline-block; position: relative; margin: 0 0 0 200px; } | |
ul:before { content: ''; display: block; width: 200px; height: 100%; position: absolute; left: -200px; background: white; } |
This file contains hidden or 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
/** | |
* Waarom is de lijn onder de tekst niet rood? | |
*/ | |
h2 { color: red; } |
This file contains hidden or 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
/** | |
* Floats: clearfix | |
*/ | |
div { | |
width: 200px; | |
border: 1px solid black; | |
} | |
span { | |
float: left; |
This file contains hidden or 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
/** | |
* Floats | |
*/ | |
.foo { | |
float: left; | |
} | |
.bar { | |
float: right; | |
} |
This file contains hidden or 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
/** | |
* Position: fixed | |
*/ | |
.bar { | |
position: fixed; | |
left: 20px; | |
top: 50px; | |
width: 100px; | |
background: blue; |
This file contains hidden or 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
/** | |
* Position: relative + absolute | |
*/ | |
.bar { | |
position: absolute;; | |
left: 20px; | |
top: 20px; | |
width: 100px; | |
background: blue; |
This file contains hidden or 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
/** | |
* Position: relative | |
*/ | |
.bar { | |
position: relative; | |
left: 20px; | |
top: 20px; | |
width: 100px; | |
background: blue; |
This file contains hidden or 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
/** | |
* Position: absolute | |
*/ | |
.bar { | |
position: absolute; | |
right: 0; | |
top: 0; | |
width: 100px; | |
background: blue; |
This file contains hidden or 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
/** | |
* Position: static | |
*/ | |
.bar { | |
position: static; | |
width: 100px; | |
background: blue; | |
color: #fff; | |
} |
This file contains hidden or 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
/** | |
* Box-model: content-box vs. border-box | |
*/ | |
div { | |
width: 300px; | |
border: 1px solid black; | |
} | |
span { | |
box-sizing: border-box; | |
display: inline-block; |
NewerOlder