Skip to content

Instantly share code, notes, and snippets.

@larrybotha
Created March 22, 2013 07:54
Show Gist options
  • Save larrybotha/5219645 to your computer and use it in GitHub Desktop.
Save larrybotha/5219645 to your computer and use it in GitHub Desktop.
A method for serving .svg images with a fallback for lte IE8
<!--[if lte IE 8]>
<a href="..."><img src="your/file.png" alt="Your alt text" ></a>
<![endif]-->
<!--[if gt IE 8]>
<a href="..."><img src="your/file.svg" alt="Your alt text" ></a>
<![endif]-->
<!--[if !IE]> -->
<a href="..."><img src="your/file.svg" alt="Your alt text" ></a>
<!-- <![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment