<?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>bluefeet &#187; CSS</title>
	<atom:link href="http://blog.bluefeet.net/tag/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.bluefeet.net</link>
	<description>Yet another Perl Hacker weblog</description>
	<lastBuildDate>Thu, 10 Jun 2010 15:22:38 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>IE8, another screwed up version.</title>
		<link>http://blog.bluefeet.net/2009/09/ie8-another-screwed-up-version/</link>
		<comments>http://blog.bluefeet.net/2009/09/ie8-another-screwed-up-version/#comments</comments>
		<pubDate>Tue, 01 Sep 2009 18:32:03 +0000</pubDate>
		<dc:creator>bluefeet</dc:creator>
				<category><![CDATA[Reviews]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE]]></category>
		<category><![CDATA[Javascript]]></category>

		<guid isPermaLink="false">http://blog.bluefeet.net/?p=187</guid>
		<description><![CDATA[I was really hoping that Internet Explorer version 8 (IE8) would finally be the version of IE where Microsoft stepped up to the plate and produced a fast browser, with few bugs, less Microsoft-only features, and a good and modern UI.
I&#8217;m the kind of guy that holds judgment for a very long time, sometimes too [...]]]></description>
			<content:encoded><![CDATA[<p>I was really hoping that Internet Explorer version 8 (IE8) would finally be the version of IE where Microsoft stepped up to the plate and produced a fast browser, with few bugs, less Microsoft-only features, and a good and modern UI.</p>
<p>I&#8217;m the kind of guy that holds judgment for a very long time, sometimes too long.  So it comes with great sadness that I announce that IE8 is not the browser I was hoping for.  It is riddled with bugs, the rendering engine crashes on many web sites, and it is SLOW.  Its the slowest browser of them all as far as I can tell.  It renders many web-2.0&#8242;ish sites with teeth-gritting sluggishness.  Once rendered, javascript animations tend to be jumpy as well.  I&#8217;ve found several cases where the event engine is even more screwed up than it was in IE7.</p>
<p>If you&#8217;re a web developer and IE8 is causing the same pain for you as it has for me, consider adding this to your HTML*:</p>
<div class="codecolorer-container html4strict vibrant" 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/meta.html"><span style="color: #000000; font-weight: bold;">meta</span></a> <span style="color: #000066;">http-equiv</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;X-UA-Compatible&quot;</span> <span style="color: #000066;">content</span><span style="color: #66cc66;">=</span><span style="color: #ff0000;">&quot;IE=EmulateIE7&quot;</span> <span style="color: #66cc66;">/</span>&gt;</span></div></div>
<p><small>* This should be the very first tag after the opening &lt;head&gt; tag.</small></p>
<p>This will force IE8 to run in IE7 compatibility mode.  When in IE7 compatibility mode IE8 will not crash nearly as often and will render your HTML/CSS/JS much more predictably and act more similar to how Chrome and FireFox behave.</p>
<p>I don&#8217;t understand why Microsoft keeps doing this.  They have all the power in the world to <b>WIN</b> the browser war, but they are just going to keep failing with crap software like this and loose one more market to Google.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bluefeet.net/2009/09/ie8-another-screwed-up-version/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>CSS Element Sizing</title>
		<link>http://blog.bluefeet.net/2009/05/css-element-sizing/</link>
		<comments>http://blog.bluefeet.net/2009/05/css-element-sizing/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:41:06 +0000</pubDate>
		<dc:creator>bluefeet</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.bluefeet.net/?p=30</guid>
		<description><![CDATA[While working on our new UI at $work we ran in to issues using the YUI layout manager as its very quirky and hard to customize. So, I ended up writing an entirely new layout manager. As part of this I found that the way I thought elements resized was nothing like reality. I&#8217;m a [...]]]></description>
			<content:encoded><![CDATA[<p>While working on our new UI at $work we ran in to issues using the YUI layout manager as its very quirky and hard to customize. So, I ended up writing an entirely new layout manager. As part of this I found that the way I thought elements resized was nothing like reality. I&#8217;m a big <a href="http://jquery.com">jQuery</a> fan so this diagram below refers to jQuery methods, but the concept applies to CSS in general.</p>
<p><img class="alignnone size-full wp-image-29" title="css_element_sizing" src="http://blog.bluefeet.net/wp-content/uploads/2009/06/css_element_sizing.png" alt="css_element_sizing" width="390" height="195" /></p>
<p>As you can see the height of an element represent only the internal height of the element, not taking in to account the margin, border, or padding. This I already knew, but I didn&#8217;t know how the corresponding jQuery methods fit in here. jQuery.height() has the same value as the CSS height attribute. jQuery.innerHeight is the CSS height plus the CSS top and bottom padding. jQuery.outerHeight() includes the CSS height, the top and bottom padding, and the top and bottom border. And, finally, jQuery.outerHeight(true) works the same as jQuery.outerHeight(), but also includes the top and bottom margin.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bluefeet.net/2009/05/css-element-sizing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>CSS Element Positioning</title>
		<link>http://blog.bluefeet.net/2009/05/css-element-positioning/</link>
		<comments>http://blog.bluefeet.net/2009/05/css-element-positioning/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:12:20 +0000</pubDate>
		<dc:creator>bluefeet</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://blog.bluefeet.net/?p=15</guid>
		<description><![CDATA[I spent a good day trying to completely understand how CSS positioning works. There are a lot of misconceptions and superstitious out there and I found many people answering questions about CSS positioning with answers that were completely false. So, I had to dispel the mystery. I think that w3schools.com explains the possible values for [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignright size-full wp-image-24" title="css_element_positioning" src="http://blog.bluefeet.net/wp-content/uploads/2009/05/css_element_positioning.png" alt="css_element_positioning" width="150" height="150" />I spent a good day trying to completely understand how CSS positioning works. There are a lot of misconceptions and superstitious out there and I found many people answering questions about CSS positioning with answers that were completely false. So, I had to dispel the mystery. I think that <a href="http://www.w3schools.com/Css/pr_class_position.asp">w3schools.com</a> explains the possible values for the CSS position property the best.</p>
<ul>
<li><strong>static</strong> Default. An element with position: static always has the position the normal flow of the page gives it (a static element ignores any top, bottom, left, or right declarations).</li>
<li><strong>relative</strong> An element with position: relative moves an element relative to its normal position, so &#8220;left:20&#8243; adds 20 pixels to the element&#8217;s LEFT position.</li>
<li><strong>absolute</strong> An element with position: absolute is positioned at the specified coordinates relative to its containing block. The element&#8217;s position is specified with the &#8220;left&#8221;, &#8220;top&#8221;, &#8220;right&#8221;, and &#8220;bottom&#8221; properties.</li>
</ul>
<p>So, relative positioning is EASY. Wherever the element would have been positioned in static positioning, is the 0,0 position for the relative element. Any top or left adjustments will be in relation to this point.</p>
<p>Absolute posotioning is where people get confused, it seems. When an elements position is abolute, its top and left positions are relative to it&#8217;s parent element&#8217;s top-most and left-most position, disregarding the parent element&#8217;s padding, as shown to the right.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bluefeet.net/2009/05/css-element-positioning/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting an Element&#8217;s Outer Size</title>
		<link>http://blog.bluefeet.net/2009/05/setting-an-elements-outer-size/</link>
		<comments>http://blog.bluefeet.net/2009/05/setting-an-elements-outer-size/#comments</comments>
		<pubDate>Tue, 12 May 2009 12:07:11 +0000</pubDate>
		<dc:creator>bluefeet</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[Javascript]]></category>
		<category><![CDATA[jQuery]]></category>

		<guid isPermaLink="false">http://blog.bluefeet.net/?p=6</guid>
		<description><![CDATA[When setting an element&#8217;s width or height you are setting the inner-most width and height, without taking in to account the padding, border, or margin. When writing application-like web sites this is not the behavior you want &#8211; usually you want exact control of the entire width and height of the element. Here&#8217;s a very [...]]]></description>
			<content:encoded><![CDATA[<p>When setting an element&#8217;s width or height you are setting the inner-most width and height, without taking in to account the padding, border, or margin. When writing application-like web sites this is not the behavior you want &#8211; usually you want exact control of the entire width and height of the element. Here&#8217;s a very simple jQuery plugin that I wrote to make this very easy to do.</p>
<div class="codecolorer-container javascript vibrant" 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">jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">setOuterWidth</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span> newWidth <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> difference <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">outerWidth</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000066; font-weight: bold;">this</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; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">width</span><span style="color: #009900;">&#40;</span> newWidth <span style="color: #339933;">-</span> difference <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span><br />
<br />
jQuery.<span style="color: #660066;">fn</span>.<span style="color: #660066;">setOuterHeight</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span> newHeight <span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span><br />
&nbsp; &nbsp; <span style="color: #003366; font-weight: bold;">var</span> difference <span style="color: #339933;">=</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">outerHeight</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">true</span><span style="color: #009900;">&#41;</span> <span style="color: #339933;">-</span> <span style="color: #000066; font-weight: bold;">this</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: #000066; font-weight: bold;">return</span> <span style="color: #000066; font-weight: bold;">this</span>.<span style="color: #660066;">height</span><span style="color: #009900;">&#40;</span> newHeight <span style="color: #339933;">-</span> difference <span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><br />
<span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span></div></div>
<p>Then all you have to do is use obj.setOuterWidth(&#8230;) instead of obj.width(&#8230;) to resize the entire element.</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.bluefeet.net/2009/05/setting-an-elements-outer-size/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
