<?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>SpinOneSolutions &#187; Internet Explorer</title>
	<atom:link href="http://www.spinonesolutions.com/tag/internet-explorer/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.spinonesolutions.com</link>
	<description>I waste my time so that you don't have to...</description>
	<lastBuildDate>Fri, 16 Apr 2010 21:39:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>JavaScript reports 0 (Zero) Height and Width for hidden image</title>
		<link>http://www.spinonesolutions.com/2009/07/javascript-reports-0-zero-height-and-width-for-hidden-image/</link>
		<comments>http://www.spinonesolutions.com/2009/07/javascript-reports-0-zero-height-and-width-for-hidden-image/#comments</comments>
		<pubDate>Thu, 09 Jul 2009 23:00:14 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[jQuery]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=298</guid>
		<description><![CDATA[The Problem: I was recently modifying an image gallery for a customer that used a pretty slick JavaScript Carousel for the presentation.  The Basic idea was that the images were all outputted within an LI, hidden via CSS, and then the JavaScript carousel used that LI as the datasource to build the gallery. Everything worked [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem:</h3>
<p>I was recently modifying an image gallery for a customer that used a pretty slick JavaScript Carousel for the presentation.  The Basic idea was that the images were all outputted within an LI, hidden via CSS, and then the JavaScript carousel used that LI as the datasource to build the gallery.</p>
<p>Everything worked great except that the images were being re-sized and their aspect ratio was not being maintained.  The solution was to obtain their original size so that the aspect ratio could be computed, and then applied during the re-sizing process.</p>
<p>The issue I ran into is that JavaScript (jQuery) always reported that the height and width was 0 (zero) for the images.</p>
<p>After some digging I found that elements marked &#8220;display:none&#8221; don&#8217;t <em>have</em> to load their hidden contents into the DOM and therefore there was no IMG object for JavaScript to report on!</p>
<div id="attachment_323" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie11.jpg"><img class="size-medium wp-image-323" title="IE" src="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie11-700x525.jpg" alt="IE" width="700" height="525" /></a><p class="wp-caption-text">IE</p></div>
<div id="attachment_324" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie21.jpg"><img class="size-medium wp-image-324" title="IE Display None" src="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie21-700x525.jpg" alt="IE Display None" width="700" height="525" /></a><p class="wp-caption-text">IE Display None</p></div>
<div id="attachment_325" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/07/moz11.jpg"><img class="size-medium wp-image-325" title="Mozilla Display None" src="http://www.spinonesolutions.com/wp-content/uploads/2009/07/moz11-700x521.jpg" alt="Mozilla Display None" width="700" height="521" /></a><p class="wp-caption-text">Mozilla Display None</p></div>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css" media="screen"&gt;
 #myImage {
 border:1px solid red;
 }
 .hidden {
 display:none;
 float:left;
 margin:10px;
 }
&lt;/style&gt;

&lt;script type="text/javascript" src="scripts/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
 var imgHeight = $("#myImage").height();
 var imgWidth = $("#myImage").width();
 alert("Height = " + imgHeight + "px\nWidth = " + imgWidth + "px");

});
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

 &lt;p&gt;
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit mauris quis ante mollis sit amet dapibus erat semper. Nunc vitae nisi sapien, at ultricies neque. Ut interdum eleifend iaculis. Ut a auctor turpis. Sed in neque eget nulla vestibulum porttitor. Donec urna magna, feugiat vel interdum vitae, vestibulum vel nibh. Integer pellentesque bibendum pulvinar. Praesent orci turpis, porttitor id laoreet eget, fringilla in tortor. Nam sollicitudin mi vitae odio luctus nec fringilla mauris rutrum. Aenean tristique mi felis. Fusce eget justo eros, vel rhoncus dui.
 &lt;div&gt;&lt;img id="myImage" src="images/lol_cat.jpg" /&gt;&lt;/div&gt;
 &lt;/p&gt;
 &lt;p&gt;
 Curabitur feugiat ornare sapien, eu placerat magna aliquet placerat. Curabitur at vestibulum felis. Maecenas sagittis, lorem ac imperdiet mattis, nisi diam porta nibh, vel molestie odio turpis ut nisl. In hac habitasse platea dictumst. Quisque augue massa, tempor nec molestie id, facilisis non tortor. Pellentesque dapibus, massa a ornare placerat, erat urna blandit justo, sagittis sodales lectus odio et lacus. Suspendisse congue ipsum quis massa ornare vel vehicula sapien gravida. Mauris pretium elit ut mi malesuada pellentesque. Phasellus pulvinar nulla at sem eleifend ac sollicitudin est tincidunt. Proin lorem urna, viverra quis gravida in, scelerisque at dui.
 &lt;/p&gt;
 &lt;p&gt;
 Nullam et erat vitae lacus porttitor pharetra. Nullam tincidunt tempor fermentum. Nulla rutrum, urna ac dapibus consequat, nisl lectus commodo arcu, ultrices auctor ante elit eget enim. Etiam enim massa, volutpat in venenatis mattis, placerat id sapien. Duis vel ante sit amet neque accumsan sollicitudin ac consequat sapien. Proin dapibus rhoncus libero vitae tristique. Quisque at neque in metus sodales vestibulum. Cras lacinia eleifend sapien, a pellentesque arcu pellentesque at. In hac habitasse platea dictumst. Ut porta sodales euismod. Donec ligula arcu, aliquet sed pretium vitae, aliquam quis lorem. Morbi fermentum semper volutpat. Sed porttitor posuere augue et imperdiet. Cras gravida diam at diam accumsan accumsan. Duis turpis erat, mollis ac tempor eu, elementum faucibus mi. Fusce et urna id dui pharetra consectetur. Nulla facilisis feugiat libero, eu ullamcorper purus placerat sed. Donec nisi sem, volutpat eu pellentesque non, consequat eget nibh.
 &lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<h3>The Solution:</h3>
<p>The solution to this issue is to alter the method in which we hide the content.  Using &#8220;visibility:hidden&#8221; works; the height and width are reported correctly, but the browser allocates space for the content which &#8220;breaks&#8221; the layout.</p>
<div id="attachment_326" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie31.jpg"><img class="size-medium wp-image-326" title="IE Visibility Hidden" src="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie31-700x521.jpg" alt="IE Visibility Hidden" width="700" height="521" /></a><p class="wp-caption-text">IE Visibility Hidden</p></div>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css" media="screen"&gt;
 #myImage {
 border:1px solid red;
 }
 .hidden {
 visibility:hidden;
 float:left;
 margin:10px;
 }
&lt;/style&gt;

&lt;script type="text/javascript" src="scripts/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
 var imgHeight = $("#myImage").height();
 var imgWidth = $("#myImage").width();
 alert("Height = " + imgHeight + "px\nWidth = " + imgWidth + "px");

});
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

 &lt;p&gt;
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit mauris quis ante mollis sit amet dapibus erat semper. Nunc vitae nisi sapien, at ultricies neque. Ut interdum eleifend iaculis. Ut a auctor turpis. Sed in neque eget nulla vestibulum porttitor. Donec urna magna, feugiat vel interdum vitae, vestibulum vel nibh. Integer pellentesque bibendum pulvinar. Praesent orci turpis, porttitor id laoreet eget, fringilla in tortor. Nam sollicitudin mi vitae odio luctus nec fringilla mauris rutrum. Aenean tristique mi felis. Fusce eget justo eros, vel rhoncus dui.
 &lt;div&gt;&lt;img id="myImage" src="images/lol_cat.jpg" /&gt;&lt;/div&gt;
 &lt;/p&gt;
 &lt;p&gt;
 Curabitur feugiat ornare sapien, eu placerat magna aliquet placerat. Curabitur at vestibulum felis. Maecenas sagittis, lorem ac imperdiet mattis, nisi diam porta nibh, vel molestie odio turpis ut nisl. In hac habitasse platea dictumst. Quisque augue massa, tempor nec molestie id, facilisis non tortor. Pellentesque dapibus, massa a ornare placerat, erat urna blandit justo, sagittis sodales lectus odio et lacus. Suspendisse congue ipsum quis massa ornare vel vehicula sapien gravida. Mauris pretium elit ut mi malesuada pellentesque. Phasellus pulvinar nulla at sem eleifend ac sollicitudin est tincidunt. Proin lorem urna, viverra quis gravida in, scelerisque at dui.
 &lt;/p&gt;
 &lt;p&gt;
 Nullam et erat vitae lacus porttitor pharetra. Nullam tincidunt tempor fermentum. Nulla rutrum, urna ac dapibus consequat, nisl lectus commodo arcu, ultrices auctor ante elit eget enim. Etiam enim massa, volutpat in venenatis mattis, placerat id sapien. Duis vel ante sit amet neque accumsan sollicitudin ac consequat sapien. Proin dapibus rhoncus libero vitae tristique. Quisque at neque in metus sodales vestibulum. Cras lacinia eleifend sapien, a pellentesque arcu pellentesque at. In hac habitasse platea dictumst. Ut porta sodales euismod. Donec ligula arcu, aliquet sed pretium vitae, aliquam quis lorem. Morbi fermentum semper volutpat. Sed porttitor posuere augue et imperdiet. Cras gravida diam at diam accumsan accumsan. Duis turpis erat, mollis ac tempor eu, elementum faucibus mi. Fusce et urna id dui pharetra consectetur. Nulla facilisis feugiat libero, eu ullamcorper purus placerat sed. Donec nisi sem, volutpat eu pellentesque non, consequat eget nibh.
 &lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Almost there.  All we need to do now is get rid of the space that&#8217;s been allocated for the element.  There are a number of different strategies for doing this and you&#8217;ll probably have to pick a particular one based on the other attributes of your layout.  I&#8217;m just going to use &#8220;postition:absolute&#8221; because it&#8217;s an easy one liner.</p>
<div id="attachment_327" class="wp-caption aligncenter" style="width: 710px"><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie41.jpg"><img class="size-medium wp-image-327" title="IE Visibility Hidden Position Absolute" src="http://www.spinonesolutions.com/wp-content/uploads/2009/07/ie41-700x525.jpg" alt="IE Visibility Hidden Position Absolute" width="700" height="525" /></a><p class="wp-caption-text">IE Visibility Hidden Position Absolute</p></div>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"&gt;
&lt;html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" dir="ltr"&gt;

&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css" media="screen"&gt;
 #myImage {
 border:1px solid red;
 }
 .hidden {
 visibility:hidden;
 float:left;
 margin:10px;
 position:absolute;
 }
&lt;/style&gt;

&lt;script type="text/javascript" src="scripts/jquery-1.3.2.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript"&gt;
$(document).ready(function(){
 var imgHeight = $("#myImage").height();
 var imgWidth = $("#myImage").width();
 alert("Height = " + imgHeight + "px\nWidth = " + imgWidth + "px");

});
&lt;/script&gt;

&lt;/head&gt;
&lt;body&gt;

 &lt;p&gt;
 Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nullam hendrerit mauris quis ante mollis sit amet dapibus erat semper. Nunc vitae nisi sapien, at ultricies neque. Ut interdum eleifend iaculis. Ut a auctor turpis. Sed in neque eget nulla vestibulum porttitor. Donec urna magna, feugiat vel interdum vitae, vestibulum vel nibh. Integer pellentesque bibendum pulvinar. Praesent orci turpis, porttitor id laoreet eget, fringilla in tortor. Nam sollicitudin mi vitae odio luctus nec fringilla mauris rutrum. Aenean tristique mi felis. Fusce eget justo eros, vel rhoncus dui.
 &lt;div&gt;&lt;img id="myImage" src="images/lol_cat.jpg" /&gt;&lt;/div&gt;
 &lt;/p&gt;
 &lt;p&gt;
 Curabitur feugiat ornare sapien, eu placerat magna aliquet placerat. Curabitur at vestibulum felis. Maecenas sagittis, lorem ac imperdiet mattis, nisi diam porta nibh, vel molestie odio turpis ut nisl. In hac habitasse platea dictumst. Quisque augue massa, tempor nec molestie id, facilisis non tortor. Pellentesque dapibus, massa a ornare placerat, erat urna blandit justo, sagittis sodales lectus odio et lacus. Suspendisse congue ipsum quis massa ornare vel vehicula sapien gravida. Mauris pretium elit ut mi malesuada pellentesque. Phasellus pulvinar nulla at sem eleifend ac sollicitudin est tincidunt. Proin lorem urna, viverra quis gravida in, scelerisque at dui.
 &lt;/p&gt;
 &lt;p&gt;
 Nullam et erat vitae lacus porttitor pharetra. Nullam tincidunt tempor fermentum. Nulla rutrum, urna ac dapibus consequat, nisl lectus commodo arcu, ultrices auctor ante elit eget enim. Etiam enim massa, volutpat in venenatis mattis, placerat id sapien. Duis vel ante sit amet neque accumsan sollicitudin ac consequat sapien. Proin dapibus rhoncus libero vitae tristique. Quisque at neque in metus sodales vestibulum. Cras lacinia eleifend sapien, a pellentesque arcu pellentesque at. In hac habitasse platea dictumst. Ut porta sodales euismod. Donec ligula arcu, aliquet sed pretium vitae, aliquam quis lorem. Morbi fermentum semper volutpat. Sed porttitor posuere augue et imperdiet. Cras gravida diam at diam accumsan accumsan. Duis turpis erat, mollis ac tempor eu, elementum faucibus mi. Fusce et urna id dui pharetra consectetur. Nulla facilisis feugiat libero, eu ullamcorper purus placerat sed. Donec nisi sem, volutpat eu pellentesque non, consequat eget nibh.
 &lt;/p&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>All done!  We now have a hidden element and jQuery is reporting the correct dimensions for the img within it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2009/07/javascript-reports-0-zero-height-and-width-for-hidden-image/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>CSS Minimum Height in Firefox &amp; Internet Explorer</title>
		<link>http://www.spinonesolutions.com/2009/05/css-minimum-height-in-firefox-internet-explorer/</link>
		<comments>http://www.spinonesolutions.com/2009/05/css-minimum-height-in-firefox-internet-explorer/#comments</comments>
		<pubDate>Wed, 13 May 2009 18:24:31 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[Height]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Minimum]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=255</guid>
		<description><![CDATA[The Problem: You need to give an element a minimum height and you need to work in both FireFox (FF) and Internet Explorer (IE). The Solution: In your default style sheet use the declaration below. This will be picked up by Firefox. min-height:500px; In your conditionally included style sheet for IE set this declaration. height:500px; [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem:</h3>
<p>You need to give an element a minimum height and you need to work in both FireFox (FF) and Internet Explorer (IE).</p>
<h3>The Solution:</h3>
<p> In your default style sheet use the declaration below.  This will be picked up by Firefox.</p>
<pre class="css" name="code">
min-height:500px;
</pre>
<p>In your conditionally included style sheet for IE set this declaration.</p>
<pre class="css" name="code">
height:500px;
overflow:visible;
</pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2009/05/css-minimum-height-in-firefox-internet-explorer/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Long Legend Text Display Issue</title>
		<link>http://www.spinonesolutions.com/2009/04/long-legend-text-display-issue/</link>
		<comments>http://www.spinonesolutions.com/2009/04/long-legend-text-display-issue/#comments</comments>
		<pubDate>Wed, 08 Apr 2009 15:56:54 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[Error]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[Fieldset]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>
		<category><![CDATA[Issue]]></category>
		<category><![CDATA[Legend]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=194</guid>
		<description><![CDATA[The Problem: I recently built a form for a customer which had a really long legend!  My content area was floated to allow for a right hand sidebar and I noticed that with the addition of the new legend the layout had broken. The issue, it turns out, is that both IE and FF handled [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem:</h3>
<p>I recently built a form for a customer which had a really long legend!  My content area was floated to allow for a right hand sidebar and I noticed that with the addition of the new legend the layout had broken.</p>
<p>The issue, it turns out, is that both IE and FF handled the legend in an unexpected way.  Let&#8217;s throw down some markup for some examples.</p>
<pre class="html" name="code">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css" media="screen"&gt;
 label,
 input {
  width:100%;
 }
 
 .container {
  width:250px;
 }
 
 fieldset {
 }

 legend {
 }
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div class="container"&gt;
 &lt;fieldset&gt;
  &lt;legend&gt;This is a really long legend as an example, so lets make it really long&lt;/legend&gt;
  &lt;label for="input1"&gt;Input 1&lt;/label&gt;
  &lt;input type="text" id="input1" name="input1" value="input1"&gt;
  &lt;label for="input2"&gt;Input 2&lt;/label&gt;
  &lt;input type="text" id="input2" name="input2" value="input1"&gt;
  &lt;label for="input3"&gt;Input 3&lt;/label&gt;
  &lt;input type="text" id="input3" name="input3" value="input1"&gt;
 &lt;/fieldset&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><img class="aligncenter size-full wp-image-222" title="FF3 Example" src="http://www.spinonesolutions.com/wp-content/uploads/2009/04/ff_ex.jpg" alt="FF3 Example" width="699" height="678" /></p>
<p><img class="aligncenter size-full wp-image-223" title="IE7 Example" src="http://www.spinonesolutions.com/wp-content/uploads/2009/04/ie7_ex.jpg" alt="IE7 Example" width="662" height="586" /></p>
<h3>The Solution:</h3>
<p>The solution for FF3 is exactly what I would expect it to be; add white-space:normal; to the legend style definition.</p>
<pre class="css" name="code">
 label,
 input {
  width:100%;
 }
 
 .container {
  width:250px;
 }
 
 fieldset {
 }

legend {
  white-space:normal;
 }
</pre>
<p><img class="aligncenter size-full wp-image-226" title="FF3 Fixed" src="http://www.spinonesolutions.com/wp-content/uploads/2009/04/ff_fixed.jpg" alt="FF3 Fixed" width="699" height="678" /></p>
<p>The solution for IE7 is a little bit more involved.  We need to nest a span tag within the legend, and then add the white-space attribute; plus a couple of other ornaments.</p>
<pre class="html" name="code">&lt;!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "<a href="http://www.w3.org/TR/html4/loose.dtd">http://www.w3.org/TR/html4/loose.dtd</a>"&gt;
&lt;html&gt;
&lt;head&gt;
&lt;meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"&gt;
&lt;title&gt;Untitled Document&lt;/title&gt;
&lt;style type="text/css" media="screen"&gt;
 label,
 input {
  width:100%;
 }
 
 .container {
  width:250px;
 }
 
 fieldset {
 }
 
 legend {
 }
 
 span {
  display:block;
  white-space:normal;
  width:100%;
 }
&lt;/style&gt;
&lt;/head&gt;

&lt;body&gt;

&lt;div class="container"&gt;
 &lt;fieldset&gt;
  &lt;legend&gt;&lt;span&gt;This is a really long legend as an example, so lets make it really long&lt;/span&gt;&lt;/legend&gt;
  &lt;label for="input1"&gt;Input 1&lt;/label&gt;
  &lt;input type="text" id="input1" name="input1" value="input1"&gt;
  &lt;label for="input2"&gt;Input 2&lt;/label&gt;
  &lt;input type="text" id="input2" name="input2" value="input1"&gt;
  &lt;label for="input3"&gt;Input 3&lt;/label&gt;
  &lt;input type="text" id="input3" name="input3" value="input1"&gt;
 &lt;/fieldset&gt;
&lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;
</pre>
<p><img class=&#8221;aligncenter size-full wp-image-229&#8243; title=&#8221;IE7 Fixed&#8221; src=&#8221;http://www.spinonesolutions.com/wp-content/uploads/2009/04/ie7_fixed.jpg&#8221; alt=&#8221;IE7 Fixed&#8221; width=&#8221;662&#8243; height=&#8221;586&#8243; /</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2009/04/long-legend-text-display-issue/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>CSS hover menu sticking open</title>
		<link>http://www.spinonesolutions.com/2009/02/css-hover-menu-sticking-open/</link>
		<comments>http://www.spinonesolutions.com/2009/02/css-hover-menu-sticking-open/#comments</comments>
		<pubDate>Tue, 24 Feb 2009 17:21:15 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=175</guid>
		<description><![CDATA[Demonstration of a CSS issue in IE regarding CSS hover menus and a way to fix it.]]></description>
			<content:encoded><![CDATA[<h3>Problem</h3>
<p>Are your CSS hover menus sticking open in IE after the mouse has left the hit region?</p>
<h3>Solution</h3>
<p>Given the following markup:</p>
<pre class="html" name="code">
&lt;ul id="nav">
  &lt;li>
    &lt;div class="dropdown">
      &lt;ul>
        &lt;li>NavItem&lt;/li>
      &lt;/ul>
    &lt;/div>
  &lt;/li>
&lt;/ul>
</pre>
<p>IE doesn&#8217;t like hiding via the off screen positioning method.</p>
<pre class="css" name="code">
#nav ul {
position:absolute;
left:-999px;
}
#nav div.drop:hover ul
{
  left:0;
}
</pre>
<p>So we&#8217;ll just switch it to use the display property instead.</p>
<pre class="css" name="code">
#nav ul {
position:absolute;
display:none;
}
#nav div.drop:hover ul
{
  display:block;
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2009/02/css-hover-menu-sticking-open/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
