Skip to content

Instantly share code, notes, and snippets.

@rossthedevigner
Last active April 17, 2016 14:10
Show Gist options
  • Save rossthedevigner/c5a48fd169b4bc109a5682eb67969d1d to your computer and use it in GitHub Desktop.
Save rossthedevigner/c5a48fd169b4bc109a5682eb67969d1d to your computer and use it in GitHub Desktop.
Aspect ratio styl
.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