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
/** | |
* Übung Adaptives Layout | |
*/ | |
body { padding: 2.5%; } | |
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; } | |
/* An's Werk! */ |
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
/** | |
* Übung Adaptives Layout | |
*/ | |
body { padding: 2.5%; } | |
div { margin: 0 2.5% 2.5%; height: 80px; border-radius: 8px; } | |
/* Mittleres Layout */ | |
@media screen and (min-width: 500px){ |
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
/** | |
* Tab-Navigation mit CSS3-Selektoren | |
*/ | |
body { | |
padding: 2em 0; | |
} | |
/* Platzierung der Tab-Navigation */ |
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
/** | |
* Übung CSS3-Pseudoklassen | |
*/ | |
html, body { | |
background: #FFF; | |
} | |
ul { | |
font-size: 18px; |
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
/** | |
* Übung CSS Tab-Navigation | |
*/ | |
/* Platzierung der Tab-Navigation */ | |
#tab-box { | |
border: 2px solid #000; | |
width: 50%; | |
margin: 0 auto; |
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
/** | |
* Selektives Markieren externer Links | |
*/ | |
/* Externe Links markieren... */ | |
#test1 a[target="_blank"] { | |
background: yellow; | |
} | |
/* ... und die Markierung wieder zurücksetzen */ |
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
/* requestAnimationFrame für alle */ | |
var reqAniFra = (function(){ | |
return window.requestAnimationFrame || | |
window.webkitRequestAnimationFrame || | |
window.mozRequestAnimationFrame || | |
window.oRequestAnimationFrame || | |
window.msRequestAnimationFrame || | |
function(callback){ | |
setTimeout(callback, 1000 / 60); | |
} |
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
/** | |
* The first commented line is your dabblet’s title | |
*/ | |
#foo { | |
} |
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
/** | |
* Übung Adaptives Layout | |
*/ | |
* { box-sizing: border-box; } | |
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; } | |
nav ul { list-style: none; margin: 0; padding: 0; } | |
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; } | |
#main, footer { clear: both; padding: 1em 0; } | |
footer { border-top: 1px solid #999; } | |
#main > section { float: left; width: 65%; } |
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
/** | |
* Lösung Adaptives Layout | |
*/ | |
* { box-sizing: border-box; } | |
body { padding: 0 1%; font-family: Arial, sans-serif; line-height: 1.6; } | |
nav ul { list-style: none; margin: 0; padding: 0; } | |
nav ul a { display: block; float: left; width:12.5%; font-weight: bold; } | |
#main, footer { clear: both; padding: 1em 0; } | |
footer { border-top: 1px solid #999; } | |
#main > section { float: left; width: 65%; } |