Skip to content

Instantly share code, notes, and snippets.

View zenolahaye's full-sized avatar

Zeno zenolahaye

  • The Netherlands
View GitHub Profile
@uxjw
uxjw / ios_vh_fix.css
Created December 15, 2016 07:57
iOS doesn't swap vh and vw like you would expect in landscape view, so we have to set these manually
/* fix iOS bug not displaying 100vh correctly */
/* iPad Pro */
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : landscape) {
.fullheight {
height: 1024px;
}
}
@media only screen and (min-device-width : 1024px) and (max-device-width : 1366px) and (orientation : portrait) {
.fullheight {
@colintoh
colintoh / douchebag-vertical-align.css
Created October 27, 2014 07:08
douchebag way of vertical alignment
.element {
position: relative;
top: 50%;
transform: translateY(-50%);
}