Skip to content

Instantly share code, notes, and snippets.

@yaqin8023
yaqin8023 / dabblet.css
Created June 15, 2016 08:57 — forked from csssecrets/dabblet.css
Vertical centering - absolute positioning method
/**
* Vertical centering - absolute positioning method
*/
main {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
@yaqin8023
yaqin8023 / dabblet.css
Last active June 15, 2016 06:38 — forked from csssecrets/dabblet.css
Diagonal stripes - repeating-linear-gradient() method
/**
* Diagonal stripes - repeating-linear-gradient() method
*/
background: repeating-linear-gradient(60deg,
#fb3, #fb3 15px,
#58a 0, #58a 30px);
height: 100%;