<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Alexandru Dinulescu&#039;s Thoughts&#187; Basics</title>
	<atom:link href="http://alexdweb.com/blog/tag/basics/feed/" rel="self" type="application/rss+xml" />
	<link>http://alexdweb.com/blog</link>
	<description>This blog is about everything/anything related to XHTML/CSS and of course my favourite js library, jQuery.</description>
	<lastBuildDate>Thu, 09 Dec 2010 12:04:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Conditional Comments for IE</title>
		<link>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/</link>
		<comments>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/#comments</comments>
		<pubDate>Fri, 08 Jan 2010 22:14:56 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[Basics]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=264</guid>
		<description><![CDATA[Hello This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone. Here is an entire list for this &#60;!--[IF IE 6]&#62; &#60;![endif]--&#62; this means that everything between those will only be loaded/visible by Internet Explorer 6 &#60;!--[IF lte/lt/gte/gt IE 6]&#62; &#60;![endif]--&#62; this [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This post may be something very common and very known, however not everyone knows these, so this post may be useful to someone. </p>
<p> Here is an entire list for this </p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!--[IF IE 6]&gt; &lt;![endif]--&gt;</span> this means that everything between those will only be loaded/visible by Internet Explorer 6<br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF lte/lt/gte/gt IE 6]&gt; &lt;![endif]--&gt;</span> this means that depending on the legend it will load things like <br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span> <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span> this means that all versions of IE will NOT READ the code between those 2<br />
&nbsp;lines. This is extremely useful when you try to load specific information and u do not want IE to load it, but<br />
&nbsp;all the other browsers to load said that information. for example<br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span> THIS LINE WILL NOT BE READ BY IE BROWSERS <span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span></div></div>
<p><span id="more-264"></span></p>
<ul>
<li> lte = Lower Than Or Equal &mdash; lte <acronym title="Internet Explorer">IE</acronym>6 means that will be loaded by <acronym title="Internet Explorer">IE</acronym>6 and lower versions like <acronym title="Internet Explorer">IE</acronym>5.5 / <acronym title="Internet Explorer">5</acronym> and so on and so forth. </li>
<li> lt = Lower Than &mdash; lt <acronym title="Internet Explorer">IE</acronym>6 means that only lower versions of Internet Explorer 6 will read that part of the code such as <acronym title="Internet Explorer">IE</acronym>5.5 / <acronym title="Internet Explorer">IE</acronym>5 / <acronym title="Internet Explorer">IE</acronym>4 and so on and so forth. </li>
<li> gte = Greater Than Or Equal &mdash; gte <acronym title="Internet Explorer">IE</acronym>6 means that browsers versions higher than 6 or equal to 6 will load that code, such as <acronym title="Internet Explorer">IE</acronym>6 / <acronym title="Internet Explorer">IE</acronym>7 / <acronym title="Internet Explorer">IE</acronym>8 and so on and so forth. </li>
<li> gt = Greater than &mdash; gt <acronym title="Internet Explorer">IE</acronym>6 means that browsers versions higher than 6 will load the code such as <acronym title="Internet Explorer">IE</acronym>7 / <acronym title="Internet Explorer">IE</acronym>8 and so on and so forth. </li>
</ul>
<p> The most useful part is the ability to load information that is not read by <acronym title="Internet Explorer">IE</acronym> browsers at all, you could do something very nice, for example if you wish to drop <acronym title="Internet Explorer">IE</acronym>6 support your stylesheet and <acronym title="Javascript">JS</acronym> includes will look like this:</p>
<div class="codecolorer-container html4strict default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="html4strict codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/link.html"><span style="color: #000000; font-weight: bold;">link</span></a> <span style="color: #000066;">rel</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;stylesheet&quot;</span> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/css&quot;</span> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./css/mainCss.css&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[if gte IE 7]&gt;</span><br />
<span style="color: #808080; font-style: italic;"> &lt;link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;./css/mainCss.css&quot; /&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF !IE]&gt;--&gt;</span><br />
&nbsp;<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/script.html"><span style="color: #000000; font-weight: bold;">script</span></a> <span style="color: #000066;">type</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;text/javascript&quot;</span> <span style="color: #000066;">src</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;./js/mainJs.js&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--&lt;![endif]--&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;!--[IF gte IE 7]&gt;</span><br />
<span style="color: #808080; font-style: italic;"> &lt;script type=&quot;text/javascript&quot; src=&quot;./js/mainJs.js&quot; /&gt;</span><br />
<span style="color: #808080; font-style: italic;">&lt;![endif]--&gt;</span></div></div>
<p> The code above will only load the files for <acronym title="Internet Explorer">IE</acronym>7+ and all other browsers. A live example of this situation is my own website, which does not support <acronym title="Internet Explorer">IE</acronym>6. </p>
<p> Regards </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/01/09/conditional-comments-for-ie/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

