Skip to content

Instantly share code, notes, and snippets.

@schadeck
schadeck / dabblet.css
Created July 10, 2012 03:39 — forked from dstorey/dabblet.css
set the size of the boxes and any decoration
.slider {
/* set initial width */
width: 520px;
/* hide the content that overflows (to allow second box to show through) */
overflow: hidden;
display: inline-block;
/* skew container so that it has angled edge, and set up transition */
transform: skewX(-20deg);
@schadeck
schadeck / dabblet.css
Created May 19, 2012 15:04
Absolute Centering
/**
* Absolute Centering
*/
div { width: 300px; height: 250px; background: green; position: relative;}
div div { width: 50%; height: 50%; background: blue;}
.center {
position: absolute;
top:0;
left:0;
@schadeck
schadeck / dabblet.css
Created May 19, 2012 15:04
Absolute Centering
/**
* Absolute Centering
*/
div { width: 300px; height: 250px; background: green;}
div div {width: 50%; height: 50%; background: blue; opacity: .3; }
.center {
position: absolute;
top:0;
left:0;
@schadeck
schadeck / dabblet.css
Created May 18, 2012 19:59
CSS3 Auto Scroll with Left Float
/**
* CSS3 Auto Scroll with Left Float
*/
.container {
width:400px;
height:500px;
overflow: auto;
background:green;
@schadeck
schadeck / dabblet.css
Created May 15, 2012 19:07
CSS3 Auto Scroll with Left Float
/**
* CSS3 Auto Scroll with Left Float
*/
.container {
width:400px;
height:500px;
overflow: auto;
background:green;
@schadeck
schadeck / dabblet.css
Created May 15, 2012 14:18
CSS3 Auto Scroll with Left Float
/**
* CSS3 Auto Scroll with Left Float
*/
.container {
width:400px;
height:500px;
overflow: auto;
background:green;
@schadeck
schadeck / dabblet.css
Created May 14, 2012 17:39
Playing with :before, and :after pseudo-elements
/**
* Playing with :before, and :after pseudo-elements
*/
.example {
background: #bada55;
display: inline-block;
}
.example:before {
content: ">";
width: 2em;
@schadeck
schadeck / dabblet.css
Created May 14, 2012 17:39
Playing with :before, and :after pseudo-elements
/**
* Playing with :before, and :after pseudo-elements
*/
.example {
background: #bada55;
display: inline-block;
}
.example:before {
content: ">";
width: 2em;
@schadeck
schadeck / dabblet.css
Created May 14, 2012 17:39
Playing with :before, and :after pseudo-elements
/**
* Playing with :before, and :after pseudo-elements
*/
.example {
background: #bada55;
display: inline-block;
}
.example:before {
content: ">";
width: 2em;
@schadeck
schadeck / dabblet.css
Created May 14, 2012 17:10
CSS3 Auto Scroll
/**
* CSS3 Auto Scroll
*/
.container {
width:400px;
height:500px;
overflow: auto;
background:green;