<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/stylesheets/rss.css" type="text/css"?>
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/">
  <channel>
    <title>Just a Thought...: Tag select</title>
    <link>http://bloritsch.d-haven.net/articles/tag/select</link>
    <language>en-us</language>
    <ttl>40</ttl>
    <description>Random thoughts</description>
    <item>
      <title>IE 6 and Select Boxes</title>
      <description>&lt;p&gt;Apparently, Microsoft did make a useful improvement in &lt;span class="caps"&gt;IE 7&lt;/span&gt;.&amp;nbsp; They fixed a bug (I know, they&amp;#8217;re supposed to be &amp;#8220;features&amp;#8221;) where select boxes in forms would display no matter what when you popped up an absolute &lt;span class="caps"&gt;DIV&lt;/span&gt; on top of them.&amp;nbsp; This issue has been around for a while.&amp;nbsp; The technical description is that the select box is a &amp;#8220;windowed&amp;#8221; control and as such has z-index priority over everything.&amp;nbsp; There are two solutions depending on what version of IE you have.&amp;nbsp; If you are dealing with &lt;span class="caps"&gt;IE 5&lt;/span&gt;.5 or earlier, you need to &lt;a href="http://xlib.wordpress.com/2006/04/12/bug-fix-select-box-displayed-through-dynamic-div-in-internet-explorer/"&gt;create a blank &lt;span class="caps"&gt;IFRAME&lt;/span&gt; under your div&lt;/a&gt;.&amp;nbsp; If you are dealing with &lt;span class="caps"&gt;IE 6&lt;/span&gt;, you need to &lt;a href="http://support.microsoft.com/kb/828527"&gt;surround the control with a div, and hide it when you are covering it&lt;/a&gt;.&amp;nbsp; Firefox and &lt;span class="caps"&gt;IE 7&lt;/span&gt; both handle the display correctly.&lt;br /&gt;&lt;br /&gt;Thankfully, I don&amp;#8217;t have to worry about &lt;span class="caps"&gt;IE 5&lt;/span&gt;.5 or earlier for my client.&amp;nbsp; It baffles my mind how Microsoft can claim &lt;a href="http://w3c.org"&gt;&lt;span class="caps"&gt;W3C&lt;/span&gt;&lt;/a&gt; compliance with serious issues like that in their software.&amp;nbsp; Yes, this falls in line with the trials and travails of creating cross-browser user experiences&amp;#8212;but why does it have to be so hard?&amp;nbsp; You&amp;#8217;ve got the way that everyone else in the world does it, and then you have the workaround for Microsoft.&amp;nbsp; It&amp;#8217;s great that we have JavaScript libraries like &lt;a href="http://prototypejs.org/"&gt;Prototype&lt;/a&gt; that take most of the pain out of it, but why not truly implement the spec?&amp;nbsp; I can understand and live with subtle differences in how browsers calculate size, but something so obviously flawed.
&lt;br/&gt;&lt;br/&gt;
Technorati Tags: &lt;a rel="tag" href="http://www.technorati.com/tag/iframe"&gt;iframe&lt;/a&gt; &lt;a rel="tag" href="http://www.technorati.com/tag/div"&gt;div&lt;/a&gt; &lt;a rel="tag" href="http://www.technorati.com/tag/design"&gt;design&lt;/a&gt; &lt;a rel="tag" href="http://www.technorati.com/tag/IE6"&gt;&lt;span class="caps"&gt;IE6&lt;/span&gt;&lt;/a&gt; &lt;a rel="tag" href="http://www.technorati.com/tag/workaround"&gt;workaround&lt;/a&gt;&lt;/p&gt;</description>
      <pubDate>Wed, 11 Jul 2007 14:18:00 +0000</pubDate>
      <guid isPermaLink="false">urn:uuid:4e0e415c-d043-45b8-8e31-08023d2c7412</guid>
      <author>bloritsch</author>
      <link>http://bloritsch.d-haven.net/articles/2007/07/11/ie-6-and-select-boxes</link>
      <category>ie6</category>
      <category>display</category>
      <category>error</category>
      <category>select</category>
      <category>html</category>
    </item>
  </channel>
</rss>
