Skip to content

Instantly share code, notes, and snippets.

View dziudek's full-sized avatar

Tomasz Dziuda dziudek

View GitHub Profile
@dziudek
dziudek / dabblet.css
Created May 16, 2012 11:30
Hex image
/**
* Hex image
*/
body {
background: url('http://subtlepatterns.com/patterns/gridme.png');
}
.hex {
height: 448px;
@dziudek
dziudek / dabblet.css
Created May 22, 2012 17:52
CSS Timeline
/**
* CSS Timeline
*/
body {
font-family: Arial, sans-serif;
}
.timeline {
border: 1px solid #eee;
@dziudek
dziudek / dabblet.css
Created May 23, 2012 09:06
Button double border styling without any additional containers.
/**
* Button double border styling without any additional containers.
*/
.btn {
display: inline-block;
background: #aaa;
background-clip: content-box;
border: 2px solid #aaa;
border-radius: 3px;
@dziudek
dziudek / dabblet.css
Created May 24, 2012 07:53
Button double border styling without any additional containers.
/**
* Button double border styling without any additional containers.
*/
.btn {
display: inline-block;
background: #aaa;
background-clip: content-box;
border: 2px solid #aaa;
border-radius: 3px;
@dziudek
dziudek / dabblet.css
Created May 24, 2012 07:59
Image always centered vertically and horizontally
/**
* Image always centered vertically and horizontally
*/
div#main {
border: 2px solid #aaa;
display: table;
width: 100%;
height: 300px;
}
@dziudek
dziudek / dabblet.css
Created May 27, 2012 08:04
Image always centered vertically and horizontally
/**
* Image always centered vertically and horizontally
*/
div#main {
border: 2px solid #aaa;
display: table;
width: 100%;
height: 300px;
}
@dziudek
dziudek / dabblet.css
Created May 27, 2012 08:08
Scalable photo scroll
/**
* Scalable photo scroll
*/
section {
border: 1px solid #aaa;
width: 600px;
max-width: 100%;
}
@dziudek
dziudek / dabblet.css
Created June 3, 2012 13:55
Fast CSS tooltips without any JavaScript and with semantic dfn element use ;)
/**
* Fast CSS tooltips without any JavaScript and with semantic dfn element use ;)
*/
a.tooltip {
position: relative;
}
a.tooltip dfn {
position: absolute;
@dziudek
dziudek / dabblet.css
Created June 4, 2012 18:00
Image :hover effect
/**
* Image :hover effect
*/
figure {
background: #eee;
border: 3px solid #aaa;
display: block;
float:left;
overflow: hidden;
@dziudek
dziudek / dabblet.css
Created June 13, 2012 13:50
Image :hover effect
/**
* Image :hover effect
*/
figure {
background: #eee;
border: 3px solid #aaa;
display: block;
float:left;
overflow: hidden;