Skip to content

Instantly share code, notes, and snippets.

@ddprrt
ddprrt / dabblet.css
Created January 30, 2012 15:00
Untitled
#bg {
position: fixed;
left: 0px;
top: 0px;
min-width: 100%;
min-height: 100%;
}
@ddprrt
ddprrt / dabblet.css
Created January 30, 2012 15:05
The first commented line is your dabblet’s title
/**
* The first commented line is your dabblet’s title
*/
#bg {
position:fixed;
top:-50%;
left:-50%;
width:200%;
height:200%;
@ddprrt
ddprrt / dabblet.css
Created January 31, 2012 12:55
Tab box using :target
/**
* Tab box using :target
*/
ul {
font: normal normal normal 14px/16px Arial;
list-style-type: none;
margin: 200px 0;
padding: 0;
}
@ddprrt
ddprrt / dabblet.css
Created February 3, 2012 08:44
Tab box using :target
/**
* Tab box using :target
*/
ul {
font: normal normal normal 14px/16px Arial;
list-style-type: none;
margin: 200px 0;
padding: 0;
}
@ddprrt
ddprrt / dabblet.css
Created February 3, 2012 09:22
Tab box using :target
/**
* Tab box using :target
*/
.container {
position: relative;
margin-top: 300px;
}
ul {
font: normal normal normal 14px/16px Arial;
@ddprrt
ddprrt / dabblet.css
Created February 29, 2012 11:03
Tab box using :target
/**
* Tab box using :target
*/
.container {
position: relative;
top: 300px;
}
ul {
font: normal normal normal 14px/16px Arial;
@ddprrt
ddprrt / dabblet.css
Created February 29, 2012 11:34
Tab box using :target
/**
* Tab box using :target
*/
.container {
position: relative;
top: 300px;
}
ul {
font: normal normal normal 14px/16px Arial;
@ddprrt
ddprrt / dabblet.css
Created April 11, 2012 16:23
IE8 CSS only Accordion
/* IE8 CSS only Accordion */
a.accord ~ div.container {
height: 0px;
overflow: hidden;
-webkit-transition: all 0.3s ease;
-moz-transition: all 0.3s ease;
-ms-transition: all 0.3s ease;
-o-transition: all 0.3s ease;
}
@ddprrt
ddprrt / dabblet.css
Created April 17, 2012 07:06
Flexbox Overlay
/**
* Flexbox Overlay
*/
body {
margin: 0;
}
#overlay {
position: fixed;
@ddprrt
ddprrt / dabblet.css
Created June 11, 2012 09:44
CSS Shadows
/* CSS Shadows */
body {
background: grey;
padding: 100px;
}
div {
background: white;
height: 300px;
position: relative;
width: 400px;