Skip to content

Instantly share code, notes, and snippets.

@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created June 29, 2012 18:05
tr background Webkit bug
/**
* tr background Webkit bug
*/
table
{
border-collapse: collapse;
width: 100%
}
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created July 3, 2012 15:24
IE table inline formatting bug
/**
* IE table inline formatting bug
*/
section { border: 1px solid; margin: 1em; overflow: hidden; width: 400px }
.compact table, .compact tbody { display: inline }
.compact tr { float: left }
tr { height: 42px; margin: 2px; width: 42px }
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 6, 2012 08:03
th with rounded corners
/**
* th with rounded corners
*/
table
{
border-spacing: 0px;
}
th, td
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 22, 2012 05:51
input with faux bottom border and bottom corners
/**
* input with faux bottom border and bottom corners
*/
input
{
background: #eee;
border: none;
box-shadow: inset 0 25px 0 0 #eee, inset 0 0 0 1px #048;
padding: 10px;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created August 24, 2012 02:53
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
a
{
background: #f93;
border-radius: 0.5em;
display: inline-block;
height: 2em;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 19, 2012 13:37
The :lang() selector and font-size in %
/**
* The :lang() selector and font-size in %
*/
:lang(fr) { font-style: italic; font-size:130%; }
:lang(fr) * { font-size: inherit; }
/**
* Quiz
*/
label
{
display: inline-block;
line-height: 1.5em;
margin-right: 2em;
width: 2em;
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 21, 2012 17:11 — forked from anonymous/dabblet.css
Declaration of Human Rights
/**
* Declaration of Human Rights
*/
body { margin: auto; max-width: 50em; }
section::before { content: ''; height: 100%; left: 0; position: absolute; right: 0; z-index: -1; }
#article1::before { background: #ECC }
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created September 24, 2012 10:23
Declaration of Human Rights
/**
* Declaration of Human Rights
*/
body { margin: auto; max-width: 50em; }
section::before { content: ''; height: 100%; left: 0; position: absolute; right: 0; z-index: -1; }
#article1::before { background: #ECC }
@gunnarbittersmann
gunnarbittersmann / dabblet.css
Created October 2, 2012 11:25
mark required fields
/**
* mark required fields
*/
label
{
display: inline-block;
position: relative;
width: 9rem;
}