Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save takahirohonda/ea9b46af47ce4817f7309b88309a32f9 to your computer and use it in GitHub Desktop.
Save takahirohonda/ea9b46af47ce4817f7309b88309a32f9 to your computer and use it in GitHub Desktop.
svg-sizing-not-working-for-iphone-1.html
<!-- icon.svg has with and viewbox attributes. They should work fine -->
<svg
xmlns="http://www.w3.org/2000/svg"
xmlns:xlink="http://www.w3.org/1999/xlink"
width="250px"
viewBox="0 0 1952.00 734.93"
enable-background="new 0 0 1952.00 734.93"
xml:space="preserve">
...
</svg>
<!-- imported in the img tag. This should work, too... -->
<img src="img/logo.svg" alt="My Logo">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment