Skip to content

Instantly share code, notes, and snippets.

@erikhazzard
Created April 24, 2014 00:25
Show Gist options
  • Save erikhazzard/11237217 to your computer and use it in GitHub Desktop.
Save erikhazzard/11237217 to your computer and use it in GitHub Desktop.
viewbox example
<div style="height: 400px; width: 400px;'>
<svg height="100%" width="100%" viewBox="0 0 500 500" preserveAspectRatio="xMinYMin">
<rect width=500 height=500 x=0 y=0 />
</svg>
</div>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment