How to add specific style/script for IE in HTML?
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 posts:
- How to Add Alternate StyleSheets? The concept of alternate stylesheets is exactly as the name...
- Validating HTML/XHTML Validating HTML/XHTML implies checking HTML/XHTML file for conformance to W3C...
- Conversion from HTML to XHTML At Ecommerce Partners.net, we (HTML Production Department) were producing html...
Tags: CSS, HTML/XHTML, Internet Explorer, Website Development
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?
Can you give an example showing the problem you are talking about?
Thank You