<?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; IE6 Bugs</title>
	<atom:link href="http://alexdweb.com/blog/category/ie6-bugs/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>MenuMatic BUG</title>
		<link>http://alexdweb.com/blog/2010/02/04/menumatic-bug/</link>
		<comments>http://alexdweb.com/blog/2010/02/04/menumatic-bug/#comments</comments>
		<pubDate>Thu, 04 Feb 2010 20:35:03 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[menuMatic]]></category>
		<category><![CDATA[mooTOOLs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=295</guid>
		<description><![CDATA[Hello This issue only happens with menuMatic and with vertical set menus. Basically in all IE browsers the sub-nav-menu didnt show up correctly. And another thing, when you have link tags inside li tags, you need to float the li tags in IE else you get a hidden spacer there (vertical lists only). and the [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> This issue only happens with menuMatic and with vertical set menus. Basically in all IE browsers the sub-nav-menu didnt show up correctly. </p>
<p> And another thing, when you have link tags inside li tags, you need to float the li tags in IE else you get a hidden spacer there (vertical lists only). and the menu looks very odd. This is old IE6 issue, seems like both IE7 and only IE8 fixed it. Fuck that shit. </p>
<p><span id="more-295"></span></p>
<p> When in doubt, float it then clear it. This triggers hasLayout behavior and stuff gets fixed by itself. With that issue done i had another issue when the menu looked out of place. In order to fix that you need to open the menuMatic source file and look for fixHasLayoutBug: false, and change it to true. </p>
<p> On the developers site it works with it set to false, i really have absolutely no ideea why it gets triggered in my projects (2 out of 2 projects) and not there and to be honest i really cant be arsed to look into it. The CSS on both sites regarding to the menu matic is quite identical. I would have switched to something based on jQuery but unfortunately there isnt anything like that currently on the market., or from what i could find. Going with the noConlict() thing really annoys the hell out of me </p>
<p> In sum if it looks borked in IE then a) float the links b) float the li tags and c) set fixhaslayoutbug: true, in the menuMatic.js file. And if you still have issues in IE8 because thats where I had the main issues, then you need to do the following. Look where your vertical navigation menu is placed and make a new CSS and load it only for IE8. in that css go to  #subMenusContainer and at the top: property modify it so it looks just right. If needed you can also play with the .smOW class at the margin property in the same CSS below are a few images with the before and after </p>
<p> In my example I set the #subMenusContainer top: property to 222px and the .smOW margin-left to about 20ish px </p>
<div id="attachment_298" class="wp-caption alignleft" style="width: 240px"><a href="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie8Before.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie8Before-230x299.jpg" alt="IE8 Before" title="ie8Before" width="230" height="299" class="size-medium wp-image-298" /></a><p class="wp-caption-text">IE8 Before</p></div>
<div id="attachment_296" class="wp-caption alignleft" style="width: 240px"><a href="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie7BeforeHasLayout.jpg"><img src="http://alexdweb.com/blog/wp-content/uploads/2010/02/ie7BeforeHasLayout-230x300.jpg" alt="" title="ie7BeforeHasLayout" width="230" height="300" class="size-medium wp-image-296" /></a><p class="wp-caption-text">IE7 Before Has Layout</p></div>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2010/02/04/menumatic-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<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>
		<item>
		<title>JQuery IE Document/Window Errors</title>
		<link>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/</link>
		<comments>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/#comments</comments>
		<pubDate>Mon, 28 Dec 2009 16:28:19 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[Nerd Rage]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=166</guid>
		<description><![CDATA[Hello After working on the google shortcuts for a while, i decided to open up IE 8 and see if the application works or not. I was surprised and started to do the old alert&#40;&#34;hax&#34;&#41; thing every dozen lines. The problem is with the $&#40;window&#41;.keypress&#40;function&#40;e&#41;&#123;&#125;&#41;. It seems that IE doesnt understand at all the $&#40;window&#41; [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> After working on the google shortcuts for a while, i decided to open up <acronym title="Internet Explorer">IE</acronym> 8 and see if the application works or not. I was surprised and started to do the old <code class="codecolorer javascript default"><span class="javascript"><span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;hax&quot;</span><span style="color: #009900;">&#41;</span></span></code> thing every dozen lines. The problem is with the <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span></span></code>. It seems that <acronym title="Internet Explorer">IE</acronym> doesnt understand at all the <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span></span></code> property at all when it comes with keypress/keydown/keyup events. </p>
<p><span id="more-166"></span></p>
<p> After some research, this is a known issue from <acronym title="Internet Explorer">IE</acronym>5 days, which is quite weird that jQuery didnt fix it in a way so it works with <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span></span></code></p>
<p> However i did check the width/height properties and both values return different values. </p>
<h3> jQuery </h3>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// instead of $(window).keypress(function(){});</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// use </span><br />
&nbsp; &nbsp; &nbsp; &nbsp; $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">keypress</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #006600; font-style: italic;">// this is the testing </span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> windowH <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> windowW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>window<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> documentH <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> documentW <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>windowH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>documentH<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>windowW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #000066;">alert</span><span style="color: #009900;">&#40;</span>documentW<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> I did look over this issue over Google but I couldnt find any information about it. Really sad you know. </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/12/28/jquery-ie-documentwindow-errors/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>jQuery IE and ClearType Problem</title>
		<link>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/</link>
		<comments>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 12:45:22 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[Windows]]></category>
		<category><![CDATA[cleartype]]></category>
		<category><![CDATA[IE Bugs]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=107</guid>
		<description><![CDATA[Hello Did it happen that when you use an animation such as fadeIn&#40;&#41;/fadeOut&#40;&#41; on a LCD screen, that has windows cleratype on (this happens automatically in windows vista+ but can be set on and off in windows XP), on IE (all versions), the text is not antialised anymore. This is due to the filter attribute [...]]]></description>
			<content:encoded><![CDATA[<p> Hello </p>
<p> Did it happen that when you use an animation such as <code class="codecolorer javascript default"><span class="javascript">fadeIn<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>fadeOut<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> on a LCD screen, that has windows cleratype on (this happens automatically in windows vista+ but can be set on and off in windows XP), on <acronym title="Internet Explorer">IE</acronym> (all versions), the text is not antialised anymore. This is due to the filter attribute <acronym title="Internet Explorer">IE</acronym> browsers use to make the cleartype/stuff. </p>
<p> The solution is relatively simple, like putting a function callback on the <code class="codecolorer javascript default"><span class="javascript">fade <span style="color: #000066; font-weight: bold;">in</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">/</span>fadeOut<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> such as: </p>
<h3> JQuery Code </h3>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp;$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;.element&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">fadeIn</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">removeAttr</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;filtered&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp;<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> It&#8217;s not a perfect solution, and it may be a bit laggy and you can still SEE THE TEXT BEING CLEARTYPED, but at least it wont stay without cleartype and look like shit. Also this is the only way to do it until jQuery incorporates it&#8217;s own fix to counter <acronym title="Internet Explorer">IE</acronym>&#8216;s behavior.</p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/11/25/jquery-ie-and-cleartype-problem/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>IE6 UL OL Vertical Bug</title>
		<link>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/</link>
		<comments>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 15:02:00 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[XHTML/CSS]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=45</guid>
		<description><![CDATA[Hello again Did you know that IE6(and only IE6, IE7+ doesnt have this issue) has a weird UL/OL bug ? If not read on Lets say you want to make a vertical list of items that are linkedable like this &#60;ul&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 1&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 2&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 3&#60;/a&#62;&#60;/li&#62; &#60;li&#62;&#60;a href=&#34;#&#34;&#62;Item 4&#60;/a&#62;&#60;/li&#62; &#60;/ul&#62; ul [...]]]></description>
			<content:encoded><![CDATA[<p> Hello again </p>
<p> Did you know that <acronym title="Internet Explorer">IE</acronym>6(and only <acronym title="Internet Explorer">IE</acronym>6, <acronym title="Internet Explorer">IE</acronym>7+ doesnt have this issue) has a weird UL/OL bug ? </p>
<p> If not read on </p>
<p> Lets say you want to make a vertical list of items that are linkedable 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: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p><span id="more-45"></span></p>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">ul li a <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">block</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">line-height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">14px</span><span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">font-size</span><span style="color: #00AA00;">:</span> <span style="color: #933;">10px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<p> In all browsers except <acronym title="Internet Explorer">IE</acronym>6 the list will look OK, however <acronym title="Internet Explorer">IE</acronym>6 has a peculiar thing, because you press ENTER and you put the list items each on a new row, somehow <acronym title="Internet Explorer">IE</acronym>6 interprets that space as a white line, and you will end up with THIS </p>
<div>
<a href="http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/ie6vertbug/" rel="attachment wp-att-46"><img src="http://alexdweb.com/blog/wp-content/uploads/2009/11/ie6vertbug.jpg" alt="IE6 HORRORS" title="ie6vertbug" width="376" height="449" class="size-full wp-image-46" /></a></div>
<h3> THE HORROR!!!!&#8230; </h3>
<p> Well there are multiple ways to fix this issue, from involving Huge javascript codes to doing some very basic things, and the most basic method of it all is to write those links as follow: </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: #009900;">&lt;<a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 1<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 2<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 3<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;</span><br />
<span style="color: #009900;">&lt;<a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a> <span style="color: #000066;">href</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;#&quot;</span>&gt;</span>Item 4<span style="color: #009900;">&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/a.html"><span style="color: #000000; font-weight: bold;">a</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/li.html"><span style="color: #000000; font-weight: bold;">li</span></a>&gt;&lt;<span style="color: #66cc66;">/</span><a href="http://december.com/html/4/element/ul.html"><span style="color: #000000; font-weight: bold;">ul</span></a>&gt;</span></div></div>
<p> The &#8220;wonders&#8221; of <acronym title="Internet Explorer">IE</acronym>6 &#8230; </p>
<p> If you have questions, post them in the comments and i will answer as soon as possible </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/06/04/ie6-ul-ol-vertical-bug/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Nifty Vertical Height Javascript JQuery</title>
		<link>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/</link>
		<comments>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 18:53:34 +0000</pubDate>
		<dc:creator>Dinulescu Alexandru Adrian</dc:creator>
				<category><![CDATA[IE6 Bugs]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[IE Bugs]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[XHTML/CSS]]></category>

		<guid isPermaLink="false">http://alexdweb.com/blog/?p=14</guid>
		<description><![CDATA[Evening All. Everyone loved valign=&#8221;middle&#8221; on tables&#8230; well life just got better with jQuery. This plugin works flawlessly however make sure that both the element itself and the parent element do not have any top/bottom paddings, else please modify it using the .outerHeight&#40;&#41; property that takes into consideration the padding/border of those elements. Tweak and [...]]]></description>
			<content:encoded><![CDATA[<p> Evening All. </p>
<p> Everyone loved valign=&#8221;middle&#8221; on tables&#8230; well life just got better with jQuery. This plugin works flawlessly however make sure that both the element itself and the parent element do not have any top/bottom paddings, else please modify it using the <code class="codecolorer javascript default"><span class="javascript">.<span style="color: #660066;">outerHeight</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></span></code> property that takes into consideration the padding/border of those elements. Tweak and use as necessary. </p>
<p><span id="more-14"></span></p>
<h3> the JQuery </h3>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span> <span style="color: #009900;">&#40;</span>$<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
<span style="color: #006600; font-style: italic;">// VERTICALLY ALIGN FUNCTION</span><br />
$.<span style="color: #660066;">fn</span>.<span style="color: #660066;">vAlign</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">each</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>i<span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ah <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> ph <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">parent</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> mh <span style="color: #339933;">=</span> <span style="color: #009900;">&#40;</span>ph <span style="color: #339933;">-</span> ah<span style="color: #009900;">&#41;</span> <span style="color: #339933;">/</span> <span style="color: #CC0000;">2</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; $<span style="color: #009900;">&#40;</span><span style="color: #000066; font-weight: bold;">this</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'paddingTop'</span><span style="color: #339933;">,</span> mh<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
&nbsp; &nbsp; <span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#40;</span>jQuery<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p>You can get the benefits of valign=middle no problem.</p>
<p>So just put the jQuery framework script then this script above and call the elements you want to be valigned=middle by using this</p>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span></div></div>
<p>Also another VERY NIFTY thing to do is, in order to prevent the user from seeing the javascript process (since first <acronym title="HyperText Markup Language">HTML</acronym> is loaded, then <acronym title="Cascading Style Sheets">CSS</acronym> file is loaded, then any images are loaded, then <acronym title="Javascript">JS</acronym> is processed) you can do this. </p>
<p> First you need an <code class="codecolorer css default"><span class="css">.outerBox</span></code> that encompasses the Box element, and then you need to have the box element with a declared height, like <code class="codecolorer css default"><span class="css"><span style="color: #cc00cc;">#box</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> <span style="color: #933;">300px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></span></code>. This workaround is only good for <acronym title="Internet Explorer 6">IE</acronym> 6 since that sucks donkey balls, and has a <acronym title="Javascript">JS</acronym> rendering engine from 1000AD. however depending on the amount of content being displayed (like entire columns) <acronym title="Internet Explorer">IE</acronym>7 which appeared in 2000AD may require this fix also. Other browsers are OK so this is BS </p>
<h3> CSS: </h3>
<div class="codecolorer-container css default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="css codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #cc00cc;">#outerBox</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">display</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span><br />
<span style="color: #cc00cc;">#box</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">height</span><span style="color: #00AA00;">:</span> xxxpx<span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></div></div>
<h3> Javascript: </h3>
<div class="codecolorer-container javascript default" style="overflow:auto;white-space:nowrap;border:1px solid #9F9F9F;width:435px;"><div class="javascript codecolorer" style="padding:5px;font:normal 12px/1.4em Monaco, Lucida Console, monospace;white-space:nowrap"><span style="color: #003366; font-weight: bold;">function</span> alignThis<span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;outerBox&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">css</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;display&quot;</span><span style="color: #339933;">,</span><span style="color: #3366CC;">&quot;block&quot;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></div></div>
<p> End of story. </p>
<p>
And for the other more compatible browsers you can put this in another <acronym title="Javascript">JS</acronym> file. The previous one was inserted in the <acronym title="HyperText Markup Language">HTML</acronym> using conditional comments <code class="codecolorer html4strict default"><span class="html4strict"><span style="color: #808080; font-style: italic;">&lt;!--[if IE lte 7]&gt; &lt;script src=&quot;./../js/biteMe.js&quot; type=&quot;text/javascript&quot;/&gt;&lt;![endif]--&gt;</span></span></code> </p>
<p> <code class="codecolorer javascript default"><span class="javascript">$<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">&quot;#box&quot;</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">vAlign</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></span></code> and just use Conditional comments to put the <acronym title="Internet Explorer">IE</acronym> specific things in so they wont see them, and since you are linking 2 different <acronym title="Javascript">JS</acronym> files, (again with conditional comments) you script WONT JAM.
</p>
<p> Complex solution for an ancient problem. </p>
<p> Cheers </p>
]]></content:encoded>
			<wfw:commentRss>http://alexdweb.com/blog/2009/04/08/nifty-vertical-height-javascript-jquery/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

