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]- ->

Internet Explorer (IE) Scrollbar Color Guide

It is possible to change the scrollbar colors in Internet Explorer (IE). Here is a guide for changing scrollbar colors in Internet Explorer using CSS.

To do so, specify following style in the StyleSheet:

body {
scrollbar-highlight-color: #F00808;
scrollbar-3dlight-color: #F5ED07;
scrollbar-arrow-color: #000000;
scrollbar-face-color: #FFFFFF;
scrollbar-shadow-color: #2308F0;
scrollbar-track-color: #808080;
scrollbar-darkshadow-color: #0F600D;
}

Scrollbar Color Guide

This will change the colors for the scrollbar of Internet Explorer browser. Continue reading Internet Explorer (IE) Scrollbar Color Guide

Comment Tags Can Cause Content Duplication In IE

At ECommerce Partners, we are required to code in XHTML and add relevant comments in between the codes to adhere to good coding practice. When the website layout is complex and we want to code the web page in XHTML, then we do have to use floating div’s. Sometimes, all this might give rise to weird problems in Internet Explorer (IE) as seen in the following two screenshots:

Continue reading Comment Tags Can Cause Content Duplication In IE