2

Ive got this <head>:

<head>
 <link rel='stylesheet' href='/animated/animate.css' type='text/css' media='all' />
 <script type='text/javascript' src='/animated/animated.js'></script>
</head>

and I need to have these two files disabled in IE8 and lower.

Is there any way how to do that?

1
  • I have updated my answer and it works perfectly, check it! Commented Aug 11, 2014 at 21:52

1 Answer 1

2

Use conditional comments. In this case you can use -

<head>
    <!--[if gt IE 8]> <!-->
    <link rel='stylesheet' href='/animated/animate.css' type='text/css' media='all' />
    <script type='text/javascript' src='/animated/animated.js'></script>
    <!-- <![endif]-->
</head>

Note that: gt means 'greater than' while gte means 'greater than or equal'.

Learn more about conditional comments from here

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.