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 March 21, 2012 10:22
Layout with the two lines at both sides without using additional elements (only :after and :before)
/**
* Layout with the two lines at both sides without using additional elements (only :after and :before)
*/
div {
background: #fff;
width:100%;
height:30px;
text-align: center;
position: relative;
@dziudek
dziudek / dabblet.css
Created March 19, 2012 18:46
Button with background for left and right side.
/**
* Button with background for left and right side.
*/
div {
height: 32px;
line-height: 32px;
background: #c00;
float:left;
padding: 0 10px;
@dziudek
dziudek / dabblet.css
Created March 15, 2012 09:38
:hover overlay effect with using :after instead of additional element
/**
* :hover overlay effect with using :after instead of additional element
**/
body > div {
width: 100px;
height: 100px;
background: #eee;
margin: 100px;
}