This is where I write about website development, search engine optimization and my thoughts on various issues. If you are interested in a particular topic, then check the section under categories on the right. I hope you will find something here that might interest you. So, sit back and read along.

How to add specific style/script for IE in HTML?

May 15th, 2006

There are times when we want a specific style or stylesheet or a javascript to be rendered only in IE and not other browsers such as FireFox. If this is so, then you can do so by adding following if and endif declarations in the HTML. Insert the style or stylesheet or javascript that needs to be rendered only by IE between the if and endif declarations in the HTML.

<!- -[if IE]>

Style or Stylesheet or JavaScript that should be rendered by Internet Explorer (IE) only will come here.

<![endif]- ->

Related Articles:

3 Responses to “How to add specific style/script for IE in HTML?”

  1. Arthur Browning Says:

    I’ve run into several wbsites recently that do not show foreign language title or text if viewed with Mozilla Firefox but come in loud and strong with IE. One particular site was hosted by register.com, but I believe it’s the Firefox browser. waht’s their problem - anybody know?

  2. Shruti Says:

    Can you give an example showing the problem you are talking about?

  3. Alex Says:

    Thank You

Leave a Reply