Last active
November 24, 2015 00:48
-
-
Save fyrebase/49622d08ebfd3b629988 to your computer and use it in GitHub Desktop.
Distortion free full screen image using Stylus
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
.img-wrapper | |
position relative | |
img | |
position absolute | |
left 50% | |
top 50% | |
transform translate(-50%,-50%) | |
display inline-block | |
max-width 100% | |
max-height 100% | |
width auto | |
height auto |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment