Skip to content

Instantly share code, notes, and snippets.

View davidtrushkov's full-sized avatar

David Trushkov davidtrushkov

View GitHub Profile
@davidtrushkov
davidtrushkov / centering.css
Created September 27, 2016 01:06 — forked from gartenfeld/centering.css
Centering without Flexbox
// Add full screen wrapper
.box {
top: 50%;
left: 50%;
margin: 0;
position: absolute;
transform: translate(-50%, -50%);
}