0

I have a rather odd CSS problem.

I am bringing in an Internet Explorer only CSS file with:

<!--[if IE]>
  <link rel="stylesheet" media="screen" href="ie.css" />
  <![endif]-->

But the file seems to of stopped updating on the server. For example, nothing changes, even if I remove my previous header fixes and set the body background to pink (the header fix by itself should be quite clearly disabled).

I have opened the file in question in IE directly from the server location and that does reflect my most recent changes, yet an older version is being used to render the page - and yes I have cleared the catch in the browser. Really I'm quite confused why this is happening.

1
  • Remove the conditional comments and test if the CSS file affects the presentation in the other browsers... Commented Oct 5, 2010 at 18:27

1 Answer 1

2

Try temporarily renaming your css as ie1.css and fetch it in the page using href="ie1.css"

If this still does not work, something else is clearly overriding your styles from this CSS file; maybe some other stylesheet? use the IE developer toolbar to inspect where it inherits its styles from, by using the "Element source with style" thingy

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

1 Comment

Found the is trick to overcome the problem (it is recurring). Simply switch between site pages to force the CSS to refresh. Don't know why, but it works.

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.