<?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; HTML</title>
	<atom:link href="http://www.spinonesolutions.com/tag/html/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>Mon, 16 May 2011 17:01:16 +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>&#8220;Mysterious&#8221; 3px Gap Below Image</title>
		<link>http://www.spinonesolutions.com/2010/03/mysterious-3px-gap-below-image/</link>
		<comments>http://www.spinonesolutions.com/2010/03/mysterious-3px-gap-below-image/#comments</comments>
		<pubDate>Mon, 29 Mar 2010 15:00:14 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=510</guid>
		<description><![CDATA[The Problem: I had a &#8220;mysterious&#8221; 3px gap below a couple of images and no matter what I did I couldn&#8217;t seem to get rid of it.  It was as if the image was 3px taller or had 3px of margin or padding, but zeroing all of these attributes had no effect. The Solution: I [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem:</h3>
<p>I had a &#8220;mysterious&#8221; 3px gap below a couple of images and no matter what I did I couldn&#8217;t seem to get rid of it.  It was as if the image was 3px taller or had 3px of margin or padding, but zeroing all of these attributes had no effect.</p>
<h3>The Solution:</h3>
<p>I finally hit upon the solution <a href="http://www.webmasterworld.com/forum83/1139.htm">here</a>.</p>
<blockquote><p><span>In short, the article says that CSS2 compliant browsers align images to the  baseline because they are replaced inline elements. The article goes on to show  some appropriate solutions in different situations.</span></p></blockquote>
<p><span>The solution that worked for me was:</span></p>
<pre class="css" name="code">img { vertical-align: bottom }</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2010/03/mysterious-3px-gap-below-image/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mozilla Strict Three Column Layout with UL</title>
		<link>http://www.spinonesolutions.com/2009/06/mozilla-strict-three-column-layout-with-ul/</link>
		<comments>http://www.spinonesolutions.com/2009/06/mozilla-strict-three-column-layout-with-ul/#comments</comments>
		<pubDate>Wed, 24 Jun 2009 15:08:03 +0000</pubDate>
		<dc:creator>Will Wright</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[HTML]]></category>
		<category><![CDATA[clearfix]]></category>
		<category><![CDATA[FF]]></category>
		<category><![CDATA[FireFox]]></category>
		<category><![CDATA[UL]]></category>
		<category><![CDATA[Unordered List]]></category>

		<guid isPermaLink="false">http://www.spinonesolutions.com/?p=274</guid>
		<description><![CDATA[The Problem: Note: This only applies to XHTML 1.0 Strict Doctypes and Mozilla. I make this type of layout all the time!  Two fixed width columns on either side of a fluid column.  Recently I had to put a list of article teasers into the center (fluid) column.  No problem, I marked up an unordered [...]]]></description>
			<content:encoded><![CDATA[<h3>The Problem:</h3>
<p>Note: This only applies to XHTML 1.0 Strict Doctypes and Mozilla.</p>
<p>I make this type of layout all the time!  Two fixed width columns on either side of a fluid column.  Recently I had to put a list of article teasers into the center (fluid) column.  No problem, I marked up an unordered list, floated the thumbnail to the left and let the title and teaser paragraph do their thing.  The only problem was that in order to get the box model for the &#8220;li&#8221; to fully wrap the inner content I had to apply &#8220;clearfix&#8221; to it.  That&#8217;s when everything broke and I started working on a fix which I shall now share with you!</p>
<p>First things first.  Let&#8217;s go over the three column layout:</p>
<p><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout.jpg"><img class="aligncenter size-medium wp-image-277" title="Three Column Layout" src="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout-548x408.jpg" alt="Three Column Layout" width="548" height="408" /></a></p>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" 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;
.layout_left {
 background-color:yellow;
 float:left;
 width:250px;
}
.layout_right {
 background-color:green;
 float:right;
 width:250px;
}
.layout_center {
 background-color:grey;
 margin:0px 270px;
}
&lt;/style&gt;

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

 &lt;div class="layout_left" &gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elementum mauris. In ultricies lobortis dictum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent pellentesque, tortor nec rutrum auctor, tellus velit feugiat tellus, id consectetur orci augue in lorem. Donec tempor posuere ligula a ullamcorper. Quisque aliquam lacinia convallis. Sed eget placerat nisi. Etiam dignissim gravida lorem sit amet auctor. In hac habitasse platea dictumst. Nunc blandit imperdiet rhoncus. Donec laoreet, nibh sed consectetur posuere, lacus eros adipiscing felis, eleifend eleifend purus libero ut nulla. Duis commodo felis vitae tellus accumsan non ultrices justo feugiat. Curabitur auctor dolor ut mi iaculis dapibus. Nunc posuere dolor in elit scelerisque cursus. Vestibulum libero lacus, auctor at mattis et, pretium eget massa.
 &lt;/div&gt;
 &lt;div class="layout_right &gt;
  Ut placerat tortor sed dui molestie eu fringilla risus ultricies. Phasellus faucibus turpis eu purus lacinia at blandit quam scelerisque. Etiam laoreet purus at augue varius a pellentesque diam accumsan. Nulla sodales auctor nibh, ac vehicula est bibendum a. In vitae quam vel dolor blandit sagittis. Proin ut congue lacus. Nulla facilisi. Sed viverra gravida justo, id feugiat nisl dignissim id. In hac habitasse platea dictumst. Proin faucibus congue pellentesque. Integer nec velit mauris, non ullamcorper leo. Duis sagittis rhoncus tincidunt. Phasellus erat metus, tristique vel lacinia non, tempus sit amet lacus.
 &lt;/div&gt;
 &lt;div class="layout_center &gt;
  Cras ac sapien ipsum. Proin orci eros, consectetur rhoncus tempus nec, ultricies sit amet metus. Vivamus condimentum tellus arcu. Mauris lorem risus, congue in tincidunt nec, tincidunt a diam. Aliquam non diam quis augue pellentesque auctor sed vel velit. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Duis ac lacus sit amet arcu imperdiet facilisis quis et turpis. Sed venenatis dignissim ligula at vestibulum. Nulla non ante elit, eu aliquet leo. Sed laoreet nulla ac justo volutpat ac facilisis nulla eleifend. Morbi nibh sapien, tincidunt ut egestas a, imperdiet eu purus. Suspendisse potenti. Sed eget sapien mi.
 &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Yea!  Hot!  Now I&#8217;m going to add in my list of article teasers and we&#8217;ll see what the problem is:</p>
<p><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_broken.jpg"><img class="aligncenter size-medium wp-image-278" title="Three Column Layout Broken" src="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_broken-548x408.jpg" alt="Three Column Layout Broken" width="548" height="408" /></a></p>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" 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;
.layout_left {
 background-color:yellow;
 float:left;
 width:250px;
}
.layout_right {
 background-color:green;
 float:right;
 width:250px;
}
.layout_center {
 background-color:grey;
 margin:0px 270px;
}

p {
 margin:0 0 1.5em;
}

ul {
 list-style-type:none;
 margin:0px;
 padding:0px;
}
 ul li {
  border:1px solid red;
 }

ul img {
 float:left;
 margin:0px 10px 0 0;
}

&lt;/style&gt;

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

 &lt;div class="layout_left" &gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elementum mauris. In ultricies lobortis dictum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent pellentesque, tortor nec rutrum auctor, tellus velit feugiat tellus, id consectetur orci augue in lorem. Donec tempor posuere ligula a ullamcorper. Quisque aliquam lacinia convallis. Sed eget placerat nisi. Etiam dignissim gravida lorem sit amet auctor. In hac habitasse platea dictumst. Nunc blandit imperdiet rhoncus. Donec laoreet, nibh sed consectetur posuere, lacus eros adipiscing felis, eleifend eleifend purus libero ut nulla. Duis commodo felis vitae tellus accumsan non ultrices justo feugiat. Curabitur auctor dolor ut mi iaculis dapibus. Nunc posuere dolor in elit scelerisque cursus. Vestibulum libero lacus, auctor at mattis et, pretium eget massa.
 &lt;/div&gt;
 &lt;div class="layout_right" &gt;
  Ut placerat tortor sed dui molestie eu fringilla risus ultricies. Phasellus faucibus turpis eu purus lacinia at blandit quam scelerisque. Etiam laoreet purus at augue varius a pellentesque diam accumsan. Nulla sodales auctor nibh, ac vehicula est bibendum a. In vitae quam vel dolor blandit sagittis. Proin ut congue lacus. Nulla facilisi. Sed viverra gravida justo, id feugiat nisl dignissim id. In hac habitasse platea dictumst. Proin faucibus congue pellentesque. Integer nec velit mauris, non ullamcorper leo. Duis sagittis rhoncus tincidunt. Phasellus erat metus, tristique vel lacinia non, tempus sit amet lacus.
 &lt;/div&gt;
 &lt;div class="layout_center" &gt;
  &lt;ul&gt;
   &lt;li &gt;
    &lt;img src="images/action_1.gif" alt="All for Good" /&gt;
    &lt;a href=""&gt;All for good&lt;/a&gt;
    &lt;p&gt;Small actions add up to a big difference. All for Good helps you find and share ways to do good.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li&gt;
    &lt;img src="images/action_2.gif" alt="Top Birthday Wish Fundraisers on Causes" /&gt;
    &lt;a href=""&gt;Top Birthday Wish Fundraisers on Causes&lt;/a&gt;
    &lt;p&gt;See the top birthday wish fundraisers on Causes and learn&lt;/p&gt;
   &lt;/li&gt;
   &lt;li&gt;
    &lt;img src="images/action_3.gif" alt="Raise Awareness for Your Cause" /&gt;
    &lt;a href=""&gt;Raise Awareness for Your Cause&lt;/a&gt;
    &lt;p&gt;Set-up a branded credit card through our partner Capital One&amp;reg; for your organization-with your logo.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li&gt;
    &lt;img src="images/action_4.gif" alt="Title/Headline" /&gt;
    &lt;a href=""&gt;Title/Headline&lt;/a&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.&lt;/p&gt;
   &lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Snap yo!  That list be broken.  If you hit that with firebug you&#8217;ll see that the box model for that second teaser list item doesn&#8217;t wrap the image because it&#8217;s been floated to the left.  Since the text for that particular item isn&#8217;t that long, it doesn&#8217;t push the box model down past the right hand edge of the image and that is what&#8217;s causing the thrid list item to stack up to the right of it.</p>
<p>The way I usually make the box model wrap floated elements is to apply the &#8220;clearfix&#8221; class to the parent element (the li in our case).</p>
<p><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_clearfix.jpg"><img class="aligncenter size-medium wp-image-279" title="Three Column Layout Clearfix" src="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_clearfix-548x398.jpg" alt="Three Column Layout Clearfix" width="548" height="398" /></a></p>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" 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;
.layout_left {
 background-color:yellow;
 float:left;
 width:250px;
}
.layout_right {
 background-color:green;
 float:right;
 width:250px;
}
.layout_center {
 background-color:grey;
 margin:0px 270px;
}

p {
 margin:0 0 1.5em;
}

ul {
 list-style-type:none;
 margin:0px;
 padding:0px;
}
 ul li {
  border:1px solid red;
  margin:0 0 10px 0;
  padding:0px;
 }

ul img {
 float:left;
 margin:0px 10px 0 0;
}

.clearfix:after {
 content: ".";
 display: block;
 clear: both;
 visibility: hidden;
 line-height: 0;
 height: 0;
}

.clearfix {
 display: inline-block;
}

html[xmlns] .clearfix {
 display: block;
}

* html .clearfix {
 height: 1%;
}

&lt;/style&gt;

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

 &lt;div class="layout_left" &gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elementum mauris. In ultricies lobortis dictum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent pellentesque, tortor nec rutrum auctor, tellus velit feugiat tellus, id consectetur orci augue in lorem. Donec tempor posuere ligula a ullamcorper. Quisque aliquam lacinia convallis. Sed eget placerat nisi. Etiam dignissim gravida lorem sit amet auctor. In hac habitasse platea dictumst. Nunc blandit imperdiet rhoncus. Donec laoreet, nibh sed consectetur posuere, lacus eros adipiscing felis, eleifend eleifend purus libero ut nulla. Duis commodo felis vitae tellus accumsan non ultrices justo feugiat. Curabitur auctor dolor ut mi iaculis dapibus. Nunc posuere dolor in elit scelerisque cursus. Vestibulum libero lacus, auctor at mattis et, pretium eget massa.
 &lt;/div&gt;
 &lt;div class="layout_right" &gt;
  Ut placerat tortor sed dui molestie eu fringilla risus ultricies. Phasellus faucibus turpis eu purus lacinia at blandit quam scelerisque. Etiam laoreet purus at augue varius a pellentesque diam accumsan. Nulla sodales auctor nibh, ac vehicula est bibendum a. In vitae quam vel dolor blandit sagittis. Proin ut congue lacus. Nulla facilisi. Sed viverra gravida justo, id feugiat nisl dignissim id. In hac habitasse platea dictumst. Proin faucibus congue pellentesque. Integer nec velit mauris, non ullamcorper leo. Duis sagittis rhoncus tincidunt. Phasellus erat metus, tristique vel lacinia non, tempus sit amet lacus.
 &lt;/div&gt;
 &lt;div class="layout_center" &gt;
  &lt;ul&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_1.gif" alt="All for Good" /&gt;
    &lt;a href=""&gt;All for good&lt;/a&gt;
    &lt;p&gt;Small actions add up to a big difference. All for Good helps you find and share ways to do good.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_2.gif" alt="Top Birthday Wish Fundraisers on Causes" /&gt;
    &lt;a href=""&gt;Top Birthday Wish Fundraisers on Causes&lt;/a&gt;
    &lt;p&gt;See the top birthday wish fundraisers on Causes and learn&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_3.gif" alt="Raise Awareness for Your Cause" /&gt;
    &lt;a href=""&gt;Raise Awareness for Your Cause&lt;/a&gt;
    &lt;p&gt;Set-up a branded credit card through our partner Capital One&amp;reg; for your organization-with your logo.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_4.gif" alt="Title/Headline" /&gt;
    &lt;a href=""&gt;Title/Headline&lt;/a&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.&lt;/p&gt;
   &lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>Well that worked, kinda.  It certainly did what it was supposed to do just not what I <em>wanted</em> to do.</p>
<p>The culprint is this line:</p>
<pre class="css" name="code">html[xmls] .clearfix {
display:block;
}</pre>
<h3>The Solution:</h3>
<p>Now that we know the problem, the solution is actually pretty simple.  All we have to do is write a selector to only target &#8220;clearfix&#8221; applied to &#8220;li&#8221;s that are in our three column layout.</p>
<p><a href="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_fixed.jpg"><img class="aligncenter size-medium wp-image-281" title="three_column_layout_fixed" src="http://www.spinonesolutions.com/wp-content/uploads/2009/06/three_column_layout_fixed-548x408.jpg" alt="three_column_layout_fixed" width="548" height="408" /></a></p>
<pre class="html" name="code">&lt;!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  "<a href="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd</a>"&gt;
&lt;html xmlns="<a href="http://www.w3.org/1999/xhtml">http://www.w3.org/1999/xhtml</a>" 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;
.layout_left {
 background-color:yellow;
 float:left;
 width:250px;
}
.layout_right {
 background-color:green;
 float:right;
 width:250px;
}
.layout_center {
 background-color:grey;
 margin:0px 270px;
}

p {
 margin:0 0 1.5em;
}

ul {
 list-style-type:none;
 margin:0px;
 padding:0px;
}
 ul li {
  border:1px solid red;
  margin:0 0 10px 0;
  padding:0px;
 }

ul li.clearfix {
  display:inline-block !important;
}

ul img {
 float:left;
 margin:0px 10px 0 0;
}

.clearfix:after {
 content: ".";
 display: block;
 clear: both;
 visibility: hidden;
 line-height: 0;
 height: 0;
}

.clearfix {
 display: inline-block;
}

html[xmlns] .clearfix {
 display: block;
}

* html .clearfix {
 height: 1%;
}

&lt;/style&gt;

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

 &lt;div class="layout_left" &gt;
  Lorem ipsum dolor sit amet, consectetur adipiscing elit. Curabitur at elementum mauris. In ultricies lobortis dictum. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Praesent pellentesque, tortor nec rutrum auctor, tellus velit feugiat tellus, id consectetur orci augue in lorem. Donec tempor posuere ligula a ullamcorper. Quisque aliquam lacinia convallis. Sed eget placerat nisi. Etiam dignissim gravida lorem sit amet auctor. In hac habitasse platea dictumst. Nunc blandit imperdiet rhoncus. Donec laoreet, nibh sed consectetur posuere, lacus eros adipiscing felis, eleifend eleifend purus libero ut nulla. Duis commodo felis vitae tellus accumsan non ultrices justo feugiat. Curabitur auctor dolor ut mi iaculis dapibus. Nunc posuere dolor in elit scelerisque cursus. Vestibulum libero lacus, auctor at mattis et, pretium eget massa.
 &lt;/div&gt;
 &lt;div class="layout_right" &gt;
  Ut placerat tortor sed dui molestie eu fringilla risus ultricies. Phasellus faucibus turpis eu purus lacinia at blandit quam scelerisque. Etiam laoreet purus at augue varius a pellentesque diam accumsan. Nulla sodales auctor nibh, ac vehicula est bibendum a. In vitae quam vel dolor blandit sagittis. Proin ut congue lacus. Nulla facilisi. Sed viverra gravida justo, id feugiat nisl dignissim id. In hac habitasse platea dictumst. Proin faucibus congue pellentesque. Integer nec velit mauris, non ullamcorper leo. Duis sagittis rhoncus tincidunt. Phasellus erat metus, tristique vel lacinia non, tempus sit amet lacus.
 &lt;/div&gt;
 &lt;div class="layout_center" &gt;
  &lt;ul&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_1.gif" alt="All for Good" /&gt;
    &lt;a href=""&gt;All for good&lt;/a&gt;
    &lt;p&gt;Small actions add up to a big difference. All for Good helps you find and share ways to do good.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_2.gif" alt="Top Birthday Wish Fundraisers on Causes" /&gt;
    &lt;a href=""&gt;Top Birthday Wish Fundraisers on Causes&lt;/a&gt;
    &lt;p&gt;See the top birthday wish fundraisers on Causes and learn&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_3.gif" alt="Raise Awareness for Your Cause" /&gt;
    &lt;a href=""&gt;Raise Awareness for Your Cause&lt;/a&gt;
    &lt;p&gt;Set-up a branded credit card through our partner Capital One&amp;reg; for your organization-with your logo.&lt;/p&gt;
   &lt;/li&gt;
   &lt;li class="clearfix" &gt;
    &lt;img src="images/action_4.gif" alt="Title/Headline" /&gt;
    &lt;a href=""&gt;Title/Headline&lt;/a&gt;
    &lt;p&gt;Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt.&lt;/p&gt;
   &lt;/li&gt;
  &lt;/ul&gt;
 &lt;/div&gt;

&lt;/body&gt;
&lt;/html&gt;</pre>
<p>That&#8217;s it!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.spinonesolutions.com/2009/06/mozilla-strict-three-column-layout-with-ul/feed/</wfw:commentRss>
		<slash:comments>0</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>

