Last active
April 17, 2016 14:10
-
-
Save rossthedevigner/c5a48fd169b4bc109a5682eb67969d1d to your computer and use it in GitHub Desktop.
Aspect ratio styl
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
.container | |
left: calc(100vw/2 - 16/9*1.2*100vh/2); | |
width: calc(16/9*1.2*100vh); | |
height: 100vh; | |
padding-bottom: 0 | |
img | |
width: 100% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment