Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>A simplest way Add App_Themes folder under your web project. Add a theme and under that theme add all css files include their respective image directories. </p> <p>In your web.config, add </p> <p>It will automatically get added to the every page.</p> <p><strong>Note:- In this case all css will get applied. If you have browser specific css, then this is not the way.</strong></p> <pre><code>[SEE UPDATED] </code></pre> <p>a CSS file like "iespecific.css" to be loaded by IE 6 and not other browsers, use the following code in the HEAD section of your web page:</p> <pre><code>&lt;!--[if IE 6]&gt; &lt;link rel="stylesheet" type="text/css" href="iespecific.css" /&gt; &lt;![endif]--&gt; </code></pre> <p>Likewise, for any version of IE 5 (including 5.0, 5.01, 5.5, etc), use the following:</p> <pre><code>&lt;!--[if IE 5]&gt; &lt;link rel="stylesheet" type="text/css" href="iespecific.css" /&gt; &lt;![endif]--&gt; </code></pre> <p>to detect the release build of IE 5.5, you will need the following code:</p> <pre><code>&lt;!--[if IE 5.5000]&gt; &lt;link rel="stylesheet" type="text/css" href="iespecific.css" /&gt; &lt;![endif]--&gt; </code></pre> <p>For example, to test for all versions of IE greater than or equal to version 6, you can use</p> <pre><code>&lt;!--[if gte IE 6]&gt; &lt;link rel="stylesheet" type="text/css" href="iespecific.css" /&gt; &lt;![endif]--&gt; </code></pre> <p>The above code examples work because a normal browser sees the entire block as HTML comments since they are enclosed within "". IE 5 or above will however attempt to parse the block to see if it has instructions specific to it.</p> <p>You can also exclude a certain style sheet using this method. For example, to exclude the CSS file "not-ie.css" from IE 6, use:</p> <pre><code>&lt;![if !(IE 6)]&gt; &lt;link rel="stylesheet" type="text/css" href="not-ie.css" /&gt; &lt;![endif]&gt; </code></pre> <p>Notice the operator "!" immediately preceding "IE". This is the NOT operator, causing the statements following to be used only if the expression "IE 6" is not matched by the browser.</p> <p>Again, the above code works because a normal browser will interpret "" and "&lt;[endif]>" as HTML tags that it does not recognise, and ignore them. This code, however, will not validate as correct in a HTML validator, since it does not use valid HTML tags.</p> <p>Note that you can also test for IE without specifying a version number. For example, the following loads the style sheet only if the browser is not IE 5 or above:</p> <pre><code>&lt;![if !IE]&gt; &lt;link rel="stylesheet" type="text/css" href="not-ie.css" /&gt; &lt;![endif]&gt; </code></pre> <p>Microsoft's documentation for this non-standard feature can be found at <a href="http://msdn2.microsoft.com/en-us/library/ms537512.aspx" rel="nofollow">http://msdn2.microsoft.com/en-us/library/ms537512.aspx</a></p> <p>Since the documentation does not specify that these features apply only to the Windows versions of IE, I assume that they also apply to the Macintosh version. I'm not able to verify this though.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload