<?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>Jeremy Church</title>
	<atom:link href="http://j.eremy.net/feed/" rel="self" type="application/rss+xml" />
	<link>http://j.eremy.net</link>
	<description>Web Dood</description>
	<lastBuildDate>Fri, 22 Feb 2013 14:07:15 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Paralysis by Twitter Nerd Mob</title>
		<link>http://j.eremy.net/paralysis-by-twitter-nerd-mob/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=paralysis-by-twitter-nerd-mob</link>
		<comments>http://j.eremy.net/paralysis-by-twitter-nerd-mob/#comments</comments>
		<pubDate>Tue, 12 Feb 2013 05:17:11 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[Community]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=530</guid>
		<description><![CDATA[Is it possible our industry is missing out, because people are afraid to write, share and create?]]></description>
				<content:encoded><![CDATA[<p>I wonder how many blog posts and projects are scrapped, simply because there&#8217;s a chance they won&#8217;t be received well. And, by &#8220;received well,&#8221; I mean an angry mob attacks the creator on Twitter, blogs and the like. It&#8217;s sad to think what our industry may be missing out on, just because a few asshats never grew up.</p>
<h2>Put Down the Torches</h2>
<p>Or, agree to disagree. It&#8217;s OK to have differing opinions. It&#8217;s even OK to publish your opposing views. But, it <em>can</em> be done in a constructive fashion. There&#8217;s really no reason to berate someone just because you don&#8217;t agree with their view.</p>
<p>If you want people to listen and take you serious, then make sure you don&#8217;t sound like an asshat. If you&#8217;re not sure you can criticize constructively, then maybe it&#8217;s best to do nothing; just move along and avoid the mob.</p>
<h2>Don&#8217;t be <del>Trampled</del> Recruited</h2>
<p>Here are some key phrases to identify and avoid a potential mob:</p>
<ul>
<li>I&#8217;m boycotting such-and-such.</li>
<li>So-and-so has no right to discuss such-and-such topic.</li>
<li>So-and-so should be fired.</li>
</ul>
<p>When you see these phrases, run, don&#8217;t walk, or you may be recruited by the mob. Once you&#8217;re in the mob, you&#8217;re guaranteed to look like an asshat.</p>
<h2>Stand Strong</h2>
<p>If you&#8217;ve been scared to write or create because of the mob effect, be strong. If you stop sharing, we all lose. Don&#8217;t let some asshat win.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/paralysis-by-twitter-nerd-mob/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Image Prefetch Test</title>
		<link>http://j.eremy.net/image-prefetch-test/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=image-prefetch-test</link>
		<comments>http://j.eremy.net/image-prefetch-test/#comments</comments>
		<pubDate>Tue, 22 Jan 2013 18:14:23 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[Performance]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=510</guid>
		<description><![CDATA[Prefecthing an image may not have the intended effect if you're expecting the image to be pre-loaded.]]></description>
				<content:encoded><![CDATA[<p>In the excellent performance article <em><a href="http://csswizardry.com/2013/01/front-end-performance-for-web-designers-and-front-end-developers/">Front-end performance for web designers and front-end developers</a></em>, Harry Roberts touches on image prefetching. He also mentions it may or may not work; citing the two opposing articles.</p>
<p>Out of curiosity, I threw together a quick test to see if I could prefetch an image using the following method:</p>
<pre><code>&lt;link rel="prefetch" href="image-name.jpg"&gt;</code></pre>
<p><a href="/examples/image-prefetch-test.html" class="btn">Image Prefetch Test</a></p>
<p>It&#8217;s typically a bad practice to specify <code>background-image</code> on <code>:hover</code> without a sprite. However, in this case it&#8217;s perfect for testing whether an image was prefetch&#8217;d or not.</p>
<p>At the time of this writing, using the prefetch technique above, <strong>the image was <em>not</em> pre-loaded in <del datetime="2013-01-25T16:51:24+00:00">Firefox 18.0</del>, Chrome 24.0 or Internet Explorer 10.0</strong>.</p>
<p><strong>Update: <em>Firefox is the only browser I tested which did pre-load the image</em></strong>. I believe I was hovering the boxes too close to page load on my initial test. After seeing the waterfall posted below I tried again, clearing cache in all the browsers, loading the page and waiting a bit longer before hovering. Regardless, this method probably isn&#8217;t ready for the masses until there is better browser support.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/image-prefetch-test/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Remove border-bottom from Image Links</title>
		<link>http://j.eremy.net/remove-border-bottom-from-image-links/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=remove-border-bottom-from-image-links</link>
		<comments>http://j.eremy.net/remove-border-bottom-from-image-links/#comments</comments>
		<pubDate>Mon, 14 Jan 2013 04:55:55 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=477</guid>
		<description><![CDATA[If you're setting <code>border-bottom</code> for text links, then here's an easy way to remove that from image links.]]></description>
				<content:encoded><![CDATA[<p>Some prefer styling text links by specifying <code>border-bottom</code> instead of <code>text-decoration</code>. In fact, I do that on this site. I think it&#8217;s easier to read text in and around links, and I can spot the links quickly as well. There&#8217;s a drawback though: <em>every</em> link has a bottom border, including images.</p>
<h2>Manually Add a Class</h2>
<p>It&#8217;s fairly simple to remedy this for nav, buttons and whatnot; just use your CSS skills. However, CSS doesn&#8217;t select parents, so it can&#8217;t target <code>&lt;img&gt;</code> with parent <code>&lt;a&gt;</code>, then remove the border. If it&#8217;s a small site with a set number of pages, then a class could be added manually to each linked image, like so:</p>
<pre><code>.border_bottom_none {
  border-bottom: none; }

&lt;a class="border_bottom_none" href="#"&gt;
  &lt;img src="happy.gif"&gt;
&lt;/a&gt;</code></pre>
<h2>Add the Class with JavaScript</h2>
<p>Adding a class manually isn&#8217;t scalable for a large site or blog. For these I suggest using jQuery, which is how I handle it on this site.</p>
<pre><code>$('a img').parent('a').addClass('border_bottom_none');</code></pre>
<p>Don&#8217;t forget to style that class and include the <a href="https://developers.google.com/speed/libraries/devguide#jquery">jQuery</a> library.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/remove-border-bottom-from-image-links/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set Element Height to Viewport</title>
		<link>http://j.eremy.net/set-element-height-to-viewport/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=set-element-height-to-viewport</link>
		<comments>http://j.eremy.net/set-element-height-to-viewport/#comments</comments>
		<pubDate>Tue, 08 Jan 2013 04:55:06 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[JavaScript]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=448</guid>
		<description><![CDATA[Use JavaScript to find the the window height and set <code>min-height</code> for a column, sidebar or container.]]></description>
				<content:encoded><![CDATA[<p>It&#8217;s not always easy to set a container, column or sidebar height to 100% of the viewport, especially with floats. To make a <code>div</code> fit the window height, sometimes it&#8217;s easier to use a little brute-force JavaScript.</p>
<p style="text-align: center;"><img class="alignnone  wp-image-457 aligncenter" alt="viewport-height" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2013/01/viewport-height.gif" width="444" height="201" /></p>
<p>First, save the viewport height to a variable. Next, query the DOM for <code>.container</code>, add <code>style="min-height:;"</code>, then set the value to <code>windowHeight</code>. Replace <code>.container</code> with the class or id of the element you wish to target.</p>
<pre><code>$(document).ready(function(){
  windowHeight = $(window).height();
  $('.container').css('min-height', windowHeight);
});</code></pre>
<p>Make sure to include <a href="https://developers.google.com/speed/libraries/devguide">jQuery</a>, since this incorporates methods specific to that library.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/set-element-height-to-viewport/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixed Element Width: Percent of a Percent</title>
		<link>http://j.eremy.net/fixed-element-width-percent-of-a-percent/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=fixed-element-width-percent-of-a-percent</link>
		<comments>http://j.eremy.net/fixed-element-width-percent-of-a-percent/#comments</comments>
		<pubDate>Mon, 07 Jan 2013 06:19:16 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=418</guid>
		<description><![CDATA[Set the width of a fixed element in relation to its parent.]]></description>
				<content:encoded><![CDATA[<p>On a recent project, and again while building v3.0 of this site, I needed to calculate the percent width of an element set to <code>position: fixed</code>. The task was tricky because all of the column widths were percents.</p>
<h2>The Riddle</h2>
<p><code>.container</code> is 70% of the window, and <code>.sidebar</code> is 20% of <code>.container</code>. The percent of a fixed element is calculated from the window, not the parent. Find the percent which makes <code>.nav_fixed</code> the same width as <code>.sidebar</code>.</p>
<p style="text-align: center;"><img class=" wp-image-419 aligncenter" alt="percent-percent" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2013/01/percent-percent.gif" width="488" height="288" /></p>
<h2>The Answer</h2>
<p>Setting <code>.sidebar</code> to 20% won&#8217;t work; it&#8217;s too large at 20% of the windows width. We need to figure out the size of <code>.sidebar</code> in relation to the window, which is 20% of 70%.</p>
<p>The quick answer: <strong>multiply 20&#215;70, then move the decimal left two places</strong>. 14% is the width of <code>.nav_fixed</code>.</p>
<p>And, here&#8217;s the math behind the answer:</p>
<p style="text-align: center;"><img class=" wp-image-430 aligncenter" alt="percent-math" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2013/01/percent-math.gif" width="550" height="122" /></p>
<p>Credit goes to Michael Cohen and his video on <a href="http://www.youtube.com/watch?v=QOb6d3q3PO0">Percent of Percent</a>, in which he gives a better explanation.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/fixed-element-width-percent-of-a-percent/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Persist Scrollbar on Short Pages</title>
		<link>http://j.eremy.net/persist-the-scrollbar/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=persist-the-scrollbar</link>
		<comments>http://j.eremy.net/persist-the-scrollbar/#comments</comments>
		<pubDate>Sat, 05 Jan 2013 04:47:19 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Notes]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=359</guid>
		<description><![CDATA[Keep the scrollbar on short pages so the whole site doesn't jog to the right.]]></description>
				<content:encoded><![CDATA[<p>Occasionally I land on a site where the scrollbar disappears on short pages, which causes the whole layout to jog a bit to the right. Also, the viewport width increases, changing some percent values as well. It seems to happen in most browsers with the exception of Internet Explorer.</p>
<p style="text-align: center;"><img class="alignnone  wp-image-446 aligncenter" alt="scrollbar-jump" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2013/01/scrollbar-jump.gif" width="505" height="214" /></p>
<p>Maybe it&#8217;s just my OCD, but the page jumping really annoys me, especially on sites I&#8217;m building. It makes me cringe. Anyways. It&#8217;s certainly not the end of the world, but there is an easy fix if you&#8217;re so inclined.</p>
<pre><code>html {
  /* show scrollbar regardless of page height */
  overflow-y: scroll; }</code></pre>
<p>I&#8217;ve included this in my projects for many years, and I thought it was worth sharing for those interested.</p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/persist-the-scrollbar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are You Still Supporting IE7?</title>
		<link>http://j.eremy.net/are-you-still-supporting-ie7/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=are-you-still-supporting-ie7</link>
		<comments>http://j.eremy.net/are-you-still-supporting-ie7/#comments</comments>
		<pubDate>Thu, 02 Feb 2012 14:30:43 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Development]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=310</guid>
		<description><![CDATA[Are you wondering whether you should still support IE7 on your next project?]]></description>
				<content:encoded><![CDATA[<p>If you are wondering whether or not to support IE7 on your next or current project, the answer is probably, &#8216;No.&#8217;</p>
<p>I asked myself that question while working on my redesign. So, I looked at my site traffic to gain some insight. Of course, my audience is comprised mostly of nerds, so it&#8217;s not surprising that a mere 0.2% of visitors to this site are using IE7. Thus <strong>I&#8217;ve discontinued support for anything less than IE8</strong>.</p>
<p>About the same time I was beginning another project, on a suite of sites, with a much less technical audience. In fact, Internet Explorer was just tipping the scale at 51%. Though,<strong> only 6% of the total site visitors were using IE7</strong>. A look at the previous 6 months revealed a rapid decline as well; down from 10%. I decided to drop support for IE7 on these sites as well. Done and done.</p>
<h2>Sudden disappearance</h2>
<p>How did IE7 disappear so much faster than IE6? It&#8217;s no mystery. Over the last year, there&#8217;s been a concerted effort to end IE6, and in general, encourage people to upgrade their browsers. Well, it paid off. Not only did IE6 folks upgrade, but a lot of people with outdated browsers made the jump.</p>
<p>Though, don&#8217;t expect IE8 to drop-off as quickly. Windows XP cannot upgrade beyond IE8, and there are still a lot of XP machines that will likely be around for awhile.</p>
<h2>What will you do?</h2>
<ul>
<li>Will you support IE7 on your next project?</li>
<li>Do your stats reveal a similar trend?</li>
<li>Are your clients requesting browser specific support, or do they expect you to make that decision?</li>
</ul>
<h3>Analyze the data first</h3>
<p>Every site has a unique audience. The best way to decide which browsers to support is to analyze site traffic. If you&#8217;re not already, use Google Analytics, which is free, or another service to monitor site traffic and visitors.</p>
<p><span class="font_small">Featured photo by <a href="http://www.flickr.com/photos/epanastasi/3799499121/">Frank S</a></span></p>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/are-you-still-supporting-ie7/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Share Your localhost Online</title>
		<link>http://j.eremy.net/share-your-localhost-online/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=share-your-localhost-online</link>
		<comments>http://j.eremy.net/share-your-localhost-online/#comments</comments>
		<pubDate>Mon, 16 Jan 2012 05:07:10 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[Ruby]]></category>

		<guid isPermaLink="false">http://j.eremy.net/?p=253</guid>
		<description><![CDATA[Share a website running on your localhost. Perfect for testing and mobile development.]]></description>
				<content:encoded><![CDATA[<p>If you ever wished you could share a website on your localhost with a coworker, remote colleague, or mom, then localtunnel is perfect for you.</p>
<p>I absolutely love this tool. It&#8217;s easy to use and straightforward, yet solves a definite need for exposing a local website to the internet. Another great use; mobile testing. Now I can view and test changes on my iPhone without deploying to a live production or development server.</p>
<p>Localtunnel is available as a RubyGem. Make sure Ruby is installed first, then simply follow the localtunnel instructions. If you need to install Ruby on Windows, I recommend <a href="http://rubyinstaller.org/">RubyInstaller</a> or <a href="http://railsinstaller.org/">RailsInstaller</a>.</p>
<p>Once you&#8217;ve installed the gem and authenticated your public key, a simple one line command generates the public url which can be shared with anyone online.</p>
<pre><code>// Install the gem:
$ gem install localtunnel

// First time requires authentication with a public key:
$ localtunnel -k ~/.ssh/id_rsa.pub 8080

// All subsequent sessions are this easy:
$ localtunnel 8080</code></pre>
<p>Instructions are available on the <a href="http://progrium.com/localtunnel/">localtunnel page</a>, or head over to <a href="https://github.com/progrium/localtunnel">Github</a> for more details and hardcore forking action. Localtunnel was created by <a href="http://progrium.com/">Jeff Lindsay</a>, and is sponsored by Twilio.</p>
<h4>Update Jan 5, 2013</h4>
<p>Say you&#8217;re running WordPress on WampServer&#8230; it won&#8217;t work, even if localtunnel is running on 8080 or whatnot. It basically works with Rails apps running on Rails server, Unicorn, etc., which is all I needed until recently.</p>
<p>There&#8217;s a couple of options If you&#8217;re working with a non-Rails app on Windows. I haven&#8217;t had the time to try either yet, so please report back if you have any luck.</p>
<ul>
<li>Twilio instructions &#8211; <a href="http://www.twilio.com/docs/quickstart/python/localtunnel">http://www.twilio.com/docs/quickstart/python/localtunnel</a></li>
<li>LocalTunnel.NET &#8211; <a href="https://github.com/danielrmz/localtunnel-net-client">https://github.com/danielrmz/localtunnel-net-client</a></li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/share-your-localhost-online/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Stretchy Sidebar</title>
		<link>http://j.eremy.net/stretchy-sidebar/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=stretchy-sidebar</link>
		<comments>http://j.eremy.net/stretchy-sidebar/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 09:37:22 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>

		<guid isPermaLink="false">http://localhost/jeremy/?p=4</guid>
		<description><![CDATA[A simple way to extend your sidebar color to fit the viewport regardless of the browser width.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-219" title="Stretchy Sidebar" alt="Stretchy Sidebar" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2012/01/stretchy_sidebar.gif" width="597" height="254" /></p>
<p>I couldn&#8217;t think of a good name to convey this concept, so I went with an alliteration. Basically we want to split the page in two, so the sidebar color extends or fits the page. Here&#8217;s a few ways to create the effect.</p>
<h2>Repeating background image</h2>
<p>Using a repeating background image is simple and should work in every browser. The drawback; it&#8217;s an image, so if the colors change we have to update the image.</p>
<p>For the body background we need to create an image that&#8217;s half the first color and half the second color(50/50). To cover wide resolutions and hi-res displays in the future, I made my image 3500 x 1.</p>
<img class="size-full wp-image-220" title="Background Image" alt="Background Image" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2012/01/ex_bg_image.gif" width="250" height="32" /> A closeup of the background image
<pre lang="css"><code>html {
    height: 100%;
    }
body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: url('bg_body.gif') top center;
    }
#container {
    margin: 0 auto;
    width: 950px;
    height: 100%;
    }
#main {
    float: left;
    padding-left: 30px;
    width: 605px;
    height: 100%;
    background: #D9CEAD;
    }
#sidebar {
    float: left;
    padding-right: 20px;
    width: 295px;
    color: #fff;
    }</code></pre>
<pre lang="html"><code>&lt;div id="container"&gt;
    &lt;div id="sidebar"&gt;
        &lt;!-- insert sidebar content --&gt;
    &lt;/div&gt;
    &lt;div id="main"&gt;
        &lt;!-- insert main content --&gt;
    &lt;/div&gt;
&lt;/div&gt;</code></pre>
<p><a class="button" href="/examples/stretchy-sidebar">View Example</a></p>
<h2>Alternate background image method</h2>
<p>We could create a background image with the actual column widths, which means we wouldn&#8217;t need to specify the background color for the columns. However, we lose the ability to scale the column widths without updating the background image. With that said, I won&#8217;t go into the details here, but give it a whirl and see which works for you.</p>
<h2>Gradient background (experimental)</h2>
<p>This method offers the most flexibility. Unfortunately it&#8217;s not going to work in IE6-9, because they don&#8217;t support gradient stops. For now it&#8217;s just for fun.</p>
<p>Everything is identical to the previous example, except we just replace the background image with a gradient:</p>
<pre lang="css"><code>body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #D9CEAD; /* Fall back */
    background: -moz-linear-gradient(left, #8A4442 0%,
                #8A4442 50%, #D9CEAD 51%, #D9CEAD 100%);
    background: -webkit-linear-gradient(left, #8A4442 0%,
                #8A4442 50%,#D9CEAD 51%,#D9CEAD 100%);
    background: -o-linear-gradient(left, #8A4442 0%,
                #8A4442 50%,#D9CEAD 51%,#D9CEAD 100%);
    background: -ms-linear-gradient(left, #8A4442 0%,
                #8A4442 50%,#D9CEAD 51%,#D9CEAD 100%);
    background: linear-gradient(left, #8A4442 0%,
                #8A4442 50%,#D9CEAD 51%,#D9CEAD 100%);
    }</code></pre>
<h2>Related resources</h2>
<ul>
<li><a href="http://www.colorzilla.com/gradient-editor/">CSS gradient generator</a> by ColorZilla</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/stretchy-sidebar/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Equal Height Columns with Gutters</title>
		<link>http://j.eremy.net/equal-height-columns-with-gutters/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=equal-height-columns-with-gutters</link>
		<comments>http://j.eremy.net/equal-height-columns-with-gutters/#comments</comments>
		<pubDate>Mon, 02 Jan 2012 08:50:10 +0000</pubDate>
		<dc:creator>Jeremy Church</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Design]]></category>
		<category><![CDATA[HTML]]></category>

		<guid isPermaLink="false">http://localhost/jeremy/?p=104</guid>
		<description><![CDATA[Stop using images and faux columns. Achieve equal height columns with CSS tables.]]></description>
				<content:encoded><![CDATA[<p><img class="alignnone size-full wp-image-223" title="Equal Height Columns" alt="Equal Height Columns with CSS Tables" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2012/01/css_tables.gif" width="597" height="328" /></p>
<p>Have you ever used a background image or extra markup to create the illusion of equal height divs?</p>
<p>Sometimes we want columns with equal heights for a visual effect, but we don&#8217;t always know the height of our content.</p>
<h2>CSS Table Values</h2>
<p>HTML tables already match neighboring cell heights. Like a spreadsheet, if a cell height changes, all of the cells in that row inherit the height. Unfortunately block level elements don&#8217;t share heights with their neighbors, making this tough to do with divs alone. However, we can apply a few CSS table values to block level elements, which will emulate a table without the <code>&lt;table&gt;</code> markup.</p>
<h2>Ruled Columns</h2>
<p>Here&#8217;s the most basic example; just a container div and two nested divs, each with content of varying height. For visual effect, the columns have vertical rules:</p>
<p><img class="size-full wp-image-224" title="Equal Height Columns with Vertical Rules" alt="Equal Height Columns with Vertical Rules" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2012/01/ex_css_table_ruled.gif" width="735" height="328" /></p>
<pre lang="css"><code>.table_container {
    display: table; }
.cell {
    display: table-cell;
    border-left: 1px solid #abb8b0;
    padding: 0 30px;
    width: 258px; }
.table_container &gt; :last-of-type {
    border-right: 1px solid #abb8b0; }

&lt;div class="table_container"&gt;
    &lt;div class="cell"&gt;
        &lt;!-- insert content --&gt;
    &lt;/div&gt;
    &lt;div class="cell"&gt;
        &lt;!-- insert content --&gt;
    &lt;/div&gt;
&lt;/div&gt;</code></pre>
<p><a class="btn" href="http://dabblet.com/gist/1549172">View Example</a></p>
<h2>Columns with Gutters</h2>
<p>What if we want our columns to look more like boxes with a gutter between them? Table cells can&#8217;t have margins, but we could add a div for the gutter:</p>
<p><img class="size-full wp-image-225" title="Equal Height Columns with Gutters" alt="Equal Height Columns with Gutters" src="http://j.eremy.net/UhUR54uwL7FLAR/wp-content/uploads/2012/01/ex_css_table_gutters.gif" width="735" height="328" /></p>
<pre><code>.table_container {
    display: table; }
.cell {
    display: table-cell;
    border: 1px solid #809e9c;
    padding: 10px 30px;
    width: 258px;
    background: #fff; }
.gutter {
    display: table-cell;
    width: 30px; }

&lt;div class="table_container"&gt;
    &lt;div class="cell"&gt;
        &lt;!-- insert content --&gt;
    &lt;/div&gt;
    &lt;div class="gutter"&gt;&lt;/div&gt;
    &lt;div class="cell"&gt;
        &lt;!-- insert content --&gt;
    &lt;/div&gt;
&lt;/div&gt;</code></pre>
<p><a class="btn" href="http://dabblet.com/gist/1549095">View Example</a></p>
<h2>Remove the Last Gutter in a Loop</h2>
<p>Say we want to include this markup in a loop, possibly for WordPress. Unfortunately the last gutter div will make a mess of things. The solution; simply target and hide the last div:</p>
<pre lang="css"><code>.table_container &gt; :last-child {
    display: none; }</code></pre>
]]></content:encoded>
			<wfw:commentRss>http://j.eremy.net/equal-height-columns-with-gutters/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
	</channel>
</rss>
