Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 9, 2014 07:17
fixed footer behind
/**
* fixed footer behind
*/
body
{
margin: 0;
padding: 0;
background-color: white;
font: 1.2em/3 Georgia;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 25, 2014 19:54
right edge of box at given distance from left viewport edge
/**
* right edge of box at given distance from left viewport edge
*/
#a
{
position: absolute;
top: 100px;
right: 100%;
transform: translateX(100px);
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 20, 2014 07:52
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a
{
font: 1.5em/1 Georgia;
display: inline-block;
margin: 0 1em;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Last active June 5, 2016 13:42
figure caption appears
/**
* figure caption appears
* deprecated by http://dabblet.com/gist/e1c363fdb1212f7a5aa7c7e62c349bd3
*/
*
{
box-sizing: border-box;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 16, 2014 18:15
figure caption disappears, wrong effect
/**
* figure caption disappears, wrong effect
*/
*
{
box-sizing: border-box;
}
html
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 16, 2014 18:01
figure caption disappears
/**
* figure caption disappears
*/
html
{
background: hsl(30, 60%, 90%);
}
figure
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 2, 2014 14:00
width-dependent line height
/**
* width-dependent line height
*/
html
{
padding: 0 2em;
font: 1.5em/1.5 Georgia;
line-height: calc(1.1em + 1vw);
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created July 30, 2014 04:57
sticky header in box
/**
* sticky header in box
*/
div
{
margin: auto;
width: 16em;
height: 26em;
padding: 0 1em;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created July 30, 2014 04:51
Quadratisch, praktisch, gut
/**
* Quadratisch, praktisch, gut
*/
div
{
position: relative;
display: inline-block;
margin: 1em;
width: 30%;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created June 19, 2014 18:15
Quadratisch, praktisch, gut
/**
* Quadratisch, praktisch, gut
*/
div
{
position: relative;
display: inline-block;
margin: 1em;
width: 30%;