Skip to content

Instantly share code, notes, and snippets.

@bergantine
Last active October 7, 2015 12:18
Show Gist options
  • Select an option

  • Save bergantine/3164284 to your computer and use it in GitHub Desktop.

Select an option

Save bergantine/3164284 to your computer and use it in GitHub Desktop.
Internet Explorer (IE) Conditional Comment Stylesheet Import. #html #ie #conditional #djangotemplate
<!--[if lte IE 9]>
<style type="text/css" media="screen">
@import "{{ STATIC_URL }}stylesheets/stylesheets/ie9.css";
</style>
<![endif]-->
<!--[if lte IE 8]>
<style type="text/css" media="screen">
@import "{{ STATIC_URL }}stylesheets/stylesheets/ie.css";
</style>
<![endif]-->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment