Skip to content

Instantly share code, notes, and snippets.

View SirPepe's full-sized avatar

Peter Kröner SirPepe

View GitHub Profile
@SirPepe
SirPepe / dabblet.css
Created November 11, 2013 11:30
Unter-Überschriften in Dachzeilen verwandeln
/**
* Unter-Überschriften in Dachzeilen verwandeln
*/
header {
display: flex;
flex-direction:column-reverse;
}
@SirPepe
SirPepe / dabblet.css
Created August 14, 2013 13:00
Vorhang-Effekt (Lösung)
/**
* Vorhang-Effekt (Lösung)
*/
/* Container */
#Box {
position: relative;
background:blue;
color: blue;
text-align: center;
@SirPepe
SirPepe / dabblet.css
Created August 14, 2013 12:58
Vorhang-Effekt
/**
* Vorhang-Effekt
*/
var names = [
'ThomasP',
'christian',
'Bruno',
'Sascha',
'André',
'Robert',
'claudius',
'gewe',
'Carsten',
<!doctype html>
<meta charset="utf-8">
<title>Audiospektrum</title>
<p>
<canvas width="512" height="256" style="border: 1px solid #000" id="Spektrum"></canvas>
</p>
<p>
<audio src="../../audio.mp3" id="Test" controls loop></audio>
@SirPepe
SirPepe / dabblet.css
Last active March 9, 2023 23:12
Flexbox-Übung
/**
* Flexbox-Übung
*/
@SirPepe
SirPepe / dabblet.css
Last active December 18, 2015 05:19
Lösung Flexbox-Übung
/**
* Lösung Flexbox-Übung
*/
/* Flexbox auf dem Wrapper macht schönere Margins */
#wrapper {
display: flex;
flex-direction: column;
max-width: 1024px;
}
@SirPepe
SirPepe / dabblet.css
Created June 1, 2013 09:26
Lösung Selektor-Übung
/**
* Lösung Selektor-Übung
*/
/* Wechselnder Hintergrund */
li:nth-child(4n+1) {
background: #CCC;
}
li:nth-child(2n+2) {
background: #AAA;
@SirPepe
SirPepe / dabblet.css
Created June 1, 2013 09:25
Vorlage Selektor-Übung
/**
* Vorlage Selektor-Übung
*/
@SirPepe
SirPepe / dabblet.css
Created May 31, 2013 20:03
Demo CSS-Pseudoklassen-Typen
/**
* Demo CSS-Pseudoklassen-Typen
*/
/* :nth-child OHNE Element */
/*#foo :nth-child(2n+1){ color: red; }*/
/* :nth-child MIT Element */
/*#foo span:nth-child(2n+1){ color: red; }*/