Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 2, 2012 12:08
mark required fields
/**
* mark required fields
*/
label
{
display: inline-block;
position: relative;
width: 9rem;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 8, 2012 10:44
figcaption transition
/**
* figcaption transition
*/
figure
{
position: relative;
float: left;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 10, 2012 08:43
figcaption transition
/**
* figcaption transition
*/
figure
{
position: relative;
float: left;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 10, 2012 08:45
figcaption transition
/**
* figcaption transition
*/
figure
{
position: relative;
float: left;
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 11, 2012 22:27
unescaped vs. escaped id and class selectors
/**
* unescaped vs. escaped id and class selectors
*/
div
{
background: red;
display: inline-block;
height: 10em;
width: 10em;
*/
The first commented line is your dabblet’s title h1 { margin-top: 3em }
html { margin-top: -3em }
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 25, 2012 23:50
How To Vertically Center
/**
* How To Vertically Center
* http://www.vanseodesign.com/css/dynamic-vertical-centering/#comment-336477
*/
#parent {
display: table-cell;
height: 500px;
width: 450px;
vertical-align: middle;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created November 22, 2012 11:14
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
background: #f06;
background: linear-gradient(45deg, #f06, yellow);
min-height: 100%;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created December 12, 2012 21:39
Centered body with different backgrounds on both sides.
/**
* Centered body with different backgrounds on both sides.
*/
* { box-sizing: border-box }
html
{
height: 100%;
background-image: url(http://www.dvd-ppt-slideshow.com/images/ppt-background/background-13.jpg),
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created May 30, 2013 10:26
box-shadow for col
/**
* box-shadow for col
*/
col
{
box-shadow: inset 2px 2px 2px 2px black;
}