<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="http://feeds.frogdesign.com/~d/styles/rss2full.xsl" type="text/xsl" media="screen"?><?xml-stylesheet href="http://feeds.frogdesign.com/~d/styles/itemcontent.css" type="text/css" media="screen"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" version="2.0" xml:base="http://designmind.frogdesign.com">
<channel>
 <title>the gnome and the window seat / frogblog</title>
 <link>http://designmind.frogdesign.com/blog/author/kyle-crouse</link>
 <description />
 <language>en</language>
<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" href="http://feeds.frogdesign.com/frog-design-blog/the-gnome-and-the-window-seat" type="application/rss+xml" /><item>
 <title>Don’t Block the Float</title>
 <link>http://feeds.frogdesign.com/~r/frog-design-blog/the-gnome-and-the-window-seat/~3/332392191/don%E2%80%99t-block-float.html</link>
 <description>&lt;p&gt;Here's a CSS tip to get started while I work on a larger piece about a GE.com feature.  This was recently asked of me by a friend and may not be common knowledge.&lt;/p&gt;
&lt;p&gt;When an element has a float property applied to it with a value of left or right, it automatically becomes a block-level element.  I often see the following code:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;display:block;&lt;br /&gt;
float: left;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;The display rule in this case is redundant, as the block is implied through the float.  Save a few bytes and remove this unnecessary line from your stylesheet.&lt;/p&gt;
&lt;p&gt;For those not-so-savvy with IE6 bugs, using the above rule when combined with a margin applied to the same direction as the float, like so:&lt;/p&gt;
&lt;p&gt;&lt;code&gt;display:block;&lt;br /&gt;
float:left;&lt;br /&gt;
margin-left:10px;&lt;/code&gt;&lt;/p&gt;
&lt;p&gt;...will double the size of the margin you have specified, giving us 20px in this example.  The same would happen if we floated the element to the right and used right margin.&lt;/p&gt;
&lt;p&gt;As I mentioned before the display:block is redundant and doesn't have anything to do with the IE6 bug, but if we change display:block to display:inline, IE will magically not render the doubled margin and go back to normal.&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=lEW2fJ"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=lEW2fJ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=mu95tj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=mu95tj" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=Qlfckj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=Qlfckj" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=Wy9jaJ"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=Wy9jaJ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=X2wPLj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=X2wPLj" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.frogdesign.com/~r/frog-design-blog/the-gnome-and-the-window-seat/~4/332392191" height="1" width="1"/&gt;</description>
 <comments>http://designmind.frogdesign.com/blog/don%E2%80%99t-block-float.html#comments</comments>
 <pubDate>Mon, 28 Apr 2008 17:07:55 -0500</pubDate>
 <dc:creator>Kyle Crouse</dc:creator>
 <guid isPermaLink="false">509 at http://designmind.frogdesign.com</guid>
<feedburner:origLink>http://designmind.frogdesign.com/blog/don%E2%80%99t-block-float.html</feedburner:origLink></item>
<item>
 <title>Under the Hood of GE.com</title>
 <link>http://feeds.frogdesign.com/~r/frog-design-blog/the-gnome-and-the-window-seat/~3/332392192/under-hood-gecom.html</link>
 <description>&lt;p&gt;Welcome to The Gnome and the Window Seat, a new frogBlog chronicling our adventures developing GE.com.  As a lead front-end developer for GE.com at frog, I worked intimately with the outline and creation of the HTML, CSS and JavaScript of the site.  Through this blog I'll provide you with a behind-the-scenes look at coding techniques for producing an accessible, valid site that is easily maintained by the GE team.  As new problems arise, I'll attempt to live-blog the development process with details and examples to assist you when you encounter similar problems within your own sites.&lt;/p&gt;
&lt;p&gt;Here goes nothing...&lt;/p&gt;&lt;div class="feedflare"&gt;
&lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=IPfttJ"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=IPfttJ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=mvTNDj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=mvTNDj" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=Tsqynj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=Tsqynj" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=Z82cDJ"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=Z82cDJ" border="0"&gt;&lt;/img&gt;&lt;/a&gt; &lt;a href="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?a=prijWj"&gt;&lt;img src="http://feeds.frogdesign.com/~f/frog-design-blog/the-gnome-and-the-window-seat?i=prijWj" border="0"&gt;&lt;/img&gt;&lt;/a&gt;
&lt;/div&gt;&lt;img src="http://feeds.frogdesign.com/~r/frog-design-blog/the-gnome-and-the-window-seat/~4/332392192" height="1" width="1"/&gt;</description>
 <comments>http://designmind.frogdesign.com/blog/under-hood-gecom.html#comments</comments>
 <pubDate>Mon, 28 Apr 2008 14:08:39 -0500</pubDate>
 <dc:creator>Kyle Crouse</dc:creator>
 <guid isPermaLink="false">508 at http://designmind.frogdesign.com</guid>
<feedburner:origLink>http://designmind.frogdesign.com/blog/under-hood-gecom.html</feedburner:origLink></item>
</channel>
</rss>
