

<?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>Michael Hartmayer &#187; CSS</title>
	<atom:link href="http://www.michaelhartmayer.com/category/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.michaelhartmayer.com</link>
	<description>Portfolio of an Idea Crafter</description>
	<lastBuildDate>Fri, 16 Sep 2011 19:52:57 +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>Text to Pixel Font!</title>
		<link>http://www.michaelhartmayer.com/fun/text-to-pixel-font/</link>
		<comments>http://www.michaelhartmayer.com/fun/text-to-pixel-font/#comments</comments>
		<pubDate>Mon, 17 Jan 2011 03:19:10 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Fun]]></category>
		<category><![CDATA[JavaScript]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=513</guid>
		<description><![CDATA[So, this is a silly little proof of concept I came up with to kill 20 minutes in between projects. Takes regular text and turns it into 1px sized divs. That&#8217;s right, the div&#8217;s actually form the pixels of each letter! Awesome, right!? Check it out! jsTexty Example How&#8217;s it done? Easy: * Get the [...]]]></description>
			<content:encoded><![CDATA[<p>So, this is a silly little proof of concept I came up with to kill 20 minutes in between projects. Takes regular text and turns it into 1px sized divs. That&#8217;s right, the div&#8217;s actually form the pixels of each letter! <img src='http://www.michaelhartmayer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' />  Awesome, right!? Check it out!</p>
<p><a href="http://playground.michaelhartmayer.com/f/wip11/jsTexty.html" title="JavaScript Pixel Font" target="_blank">jsTexty Example</a></p>
<p>How&#8217;s it done? Easy:<br />
* Get the text of an element<br />
* Move through it, 1 character at a time<br />
* Match the character with a pattern (currently only supports lowercase)<br />
* Convert the pattern to markup<br />
* Replace the text with excessive amounts of html <img src='http://www.michaelhartmayer.com/wp-includes/images/smilies/icon_biggrin.gif' alt=':D' class='wp-smiley' /> </p>

<div class="wp_syntax"><div class="code"><pre class="javascript" style="font-family:monospace;">$<span style="color: #009900;">&#40;</span>document<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">ready</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
    <span style="color: #003366; font-weight: bold;">var</span> jsTexty <span style="color: #339933;">=</span> <span style="color: #009900;">&#123;</span><span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    jsTexty.<span style="color: #660066;">Make</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> strLetterString <span style="color: #339933;">=</span> $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">text</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #003366; font-weight: bold;">var</span> strReplaceHtml <span style="color: #339933;">=</span> <span style="color: #3366CC;">''</span><span style="color: #339933;">;</span>
&nbsp;
        <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>strLetterString.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> strThisLetter <span style="color: #339933;">=</span> strLetterString.<span style="color: #660066;">substr</span><span style="color: #009900;">&#40;</span>i<span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
            <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> jsTexty.<span style="color: #660066;">GetLetterCode</span><span style="color: #009900;">&#40;</span>strThisLetter<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                strReplaceHtml <span style="color: #339933;">+=</span> jsTexty.<span style="color: #660066;">LetterCodeToHtml</span><span style="color: #009900;">&#40;</span>arrLetterCode<span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
&nbsp;
        $<span style="color: #009900;">&#40;</span>e<span style="color: #009900;">&#41;</span>.<span style="color: #660066;">html</span><span style="color: #009900;">&#40;</span>strReplaceHtml <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    jsTexty.<span style="color: #660066;">LetterCodeToHtml</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>arrLetterCode<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #003366; font-weight: bold;">var</span> strReplaceHtml <span style="color: #339933;">=</span> <span style="color: #3366CC;">'&lt;div class=&quot;lbBlock&quot;&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> i <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> i<span style="color: #339933;">&lt;</span>arrLetterCode.<span style="color: #660066;">length</span><span style="color: #339933;">;</span> i<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> strThisRow <span style="color: #339933;">=</span> arrLetterCode<span style="color: #009900;">&#91;</span>i<span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">for</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">var</span> j <span style="color: #339933;">=</span> <span style="color: #CC0000;">0</span><span style="color: #339933;">;</span> j<span style="color: #339933;">&lt;</span>strThisRow<span style="color: #339933;">;</span> j<span style="color: #339933;">++</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                <span style="color: #003366; font-weight: bold;">var</span> strThisLetterBlock <span style="color: #339933;">=</span> strThisRow.<span style="color: #660066;">substr</span><span style="color: #009900;">&#40;</span>j<span style="color: #339933;">,</span><span style="color: #CC0000;">1</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>strThisLetterBlock<span style="color: #339933;">===</span><span style="color: #3366CC;">'1'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    strReplaceHtml <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;div class=&quot;lbSolid&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
                <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span>strThisLetterBlock<span style="color: #339933;">===</span><span style="color: #3366CC;">'0'</span><span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
                    strReplaceHtml <span style="color: #339933;">+=</span> <span style="color: #3366CC;">'&lt;div class=&quot;lbEmpty&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
                <span style="color: #009900;">&#125;</span>
            <span style="color: #009900;">&#125;</span>
            strReplaceHtml<span style="color: #339933;">+=</span><span style="color: #3366CC;">'&lt;div class=&quot;clear&quot;&gt;&lt;/div&gt;'</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">return</span> strReplaceHtml <span style="color: #339933;">+</span> <span style="color: #3366CC;">'&lt;/div&gt;'</span><span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span>
&nbsp;
    jsTexty.<span style="color: #660066;">GetLetterCode</span> <span style="color: #339933;">=</span> <span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span>strSingleLetter<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
        <span style="color: #000066; font-weight: bold;">switch</span><span style="color: #009900;">&#40;</span>strSingleLetter<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">' '</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0000'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'a'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'b'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'c'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'d'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'e'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'f'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'g'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1011'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'h'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'i'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'j'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'k'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'l'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'m'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'11011'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'n'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'11001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10011'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'o'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'p'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1000'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'q'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'r'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'s'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'0111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0011'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'t'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'11111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'u'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'v'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'w'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10101'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'x'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'10001'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'y'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'10001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'01010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'z'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'0100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'1111'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'.'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'110'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">','</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'!'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'('</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'100'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">')'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'010'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'010'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
            <span style="color: #000066; font-weight: bold;">case</span> <span style="color: #3366CC;">'?'</span><span style="color: #339933;">:</span>
                <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
                <span style="color: #3366CC;">'01110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00001'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00110'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00000'</span><span style="color: #339933;">,</span>
                <span style="color: #3366CC;">'00100'</span>
                <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>
                <span style="color: #000066; font-weight: bold;">break</span><span style="color: #339933;">;</span>
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">if</span><span style="color: #009900;">&#40;</span><span style="color: #339933;">!</span>arrLetterCode<span style="color: #009900;">&#41;</span> <span style="color: #009900;">&#123;</span>
            <span style="color: #003366; font-weight: bold;">var</span> arrLetterCode <span style="color: #339933;">=</span> <span style="color: #009900;">&#91;</span>
            <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
            <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
            <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
            <span style="color: #3366CC;">'1111'</span><span style="color: #339933;">,</span>
            <span style="color: #3366CC;">'1111'</span>
            <span style="color: #009900;">&#93;</span><span style="color: #339933;">;</span>						
        <span style="color: #009900;">&#125;</span>
        <span style="color: #000066; font-weight: bold;">return</span> arrLetterCode<span style="color: #339933;">;</span>
    <span style="color: #009900;">&#125;</span><span style="color: #339933;">;</span>
&nbsp;
    <span style="color: #006600; font-style: italic;">// ACTIVATE</span>
    $<span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#doit'</span><span style="color: #009900;">&#41;</span>.<span style="color: #660066;">click</span><span style="color: #009900;">&#40;</span><span style="color: #003366; font-weight: bold;">function</span><span style="color: #009900;">&#40;</span><span style="color: #009900;">&#41;</span><span style="color: #009900;">&#123;</span>jsTexty.<span style="color: #660066;">Make</span><span style="color: #009900;">&#40;</span><span style="color: #3366CC;">'#letterBox'</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span><span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span>
<span style="color: #009900;">&#125;</span><span style="color: #009900;">&#41;</span><span style="color: #339933;">;</span></pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21&amp;bodytext=So%2C%20this%20is%20a%20silly%20little%20proof%20of%20concept%20I%20came%20up%20with%20to%20kill%2020%20minutes%20in%20between%20projects.%20Takes%20regular%20text%20and%20turns%20it%20into%201px%20sized%20divs.%20That%27s%20right%2C%20the%20div%27s%20actually%20form%20the%20pixels%20of%20each%20letter%21%20%3AD%20Awesome%2C%20right%21%3F%20Check%20it%20out%21" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21&amp;notes=So%2C%20this%20is%20a%20silly%20little%20proof%20of%20concept%20I%20came%20up%20with%20to%20kill%2020%20minutes%20in%20between%20projects.%20Takes%20regular%20text%20and%20turns%20it%20into%201px%20sized%20divs.%20That%27s%20right%2C%20the%20div%27s%20actually%20form%20the%20pixels%20of%20each%20letter%21%20%3AD%20Awesome%2C%20right%21%3F%20Check%20it%20out%21" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;t=Text%20to%20Pixel%20Font%21" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21&amp;annotation=So%2C%20this%20is%20a%20silly%20little%20proof%20of%20concept%20I%20came%20up%20with%20to%20kill%2020%20minutes%20in%20between%20projects.%20Takes%20regular%20text%20and%20turns%20it%20into%201px%20sized%20divs.%20That%27s%20right%2C%20the%20div%27s%20actually%20form%20the%20pixels%20of%20each%20letter%21%20%3AD%20Awesome%2C%20right%21%3F%20Check%20it%20out%21" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21&amp;source=Michael+Hartmayer+Portfolio+of+an+Idea+Crafter&amp;summary=So%2C%20this%20is%20a%20silly%20little%20proof%20of%20concept%20I%20came%20up%20with%20to%20kill%2020%20minutes%20in%20between%20projects.%20Takes%20regular%20text%20and%20turns%20it%20into%201px%20sized%20divs.%20That%27s%20right%2C%20the%20div%27s%20actually%20form%20the%20pixels%20of%20each%20letter%21%20%3AD%20Awesome%2C%20right%21%3F%20Check%20it%20out%21" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;t=Text%20to%20Pixel%20Font%21" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Ffun%2Ftext-to-pixel-font%2F&amp;title=Text%20to%20Pixel%20Font%21" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/fun/text-to-pixel-font/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>960gs Margin Mod</title>
		<link>http://www.michaelhartmayer.com/css/960gs-margin-mod/</link>
		<comments>http://www.michaelhartmayer.com/css/960gs-margin-mod/#comments</comments>
		<pubDate>Thu, 23 Jul 2009 21:31:07 +0000</pubDate>
		<dc:creator>Michael Hartmayer</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[960]]></category>
		<category><![CDATA[framework]]></category>

		<guid isPermaLink="false">http://www.michaelhartmayer.com/?p=359</guid>
		<description><![CDATA[Lately I&#8217;ve been working with the marvelously easy to use and understand CSS framework, 960 Grid System. After getting started with it, I very quickly noticed that, while easy and efficient, it has a flaw. You absolutely can NOT extend your elements to end after a margin, touching the next grid element. And so, one [...]]]></description>
			<content:encoded><![CDATA[<p>Lately I&#8217;ve been working with the marvelously easy to use and understand CSS framework, <a href="http://960.gs" title="960 Grid System" target="_blank">960 Grid System</a>. After getting started with it, I very quickly noticed that, while easy and efficient, it has a flaw. You absolutely can NOT extend your elements to end after a margin, touching the next grid element. And so, one becomes effectively shackled to having margins between any horizontally placed grid elements.</p>
<p>Here&#8217;s a quick Mod that I wrote that will allow you to negate that problem, without modifying the 960gs CSS itself. Also, it is important to note, that while this does allow you to push your grid class over the margin, you still can&#8217;t pull the next element back. Still, another mod could be written using the same flavor to accomplish that as well.</p>
<p>So, without further adieu, here it is:</p>
<p>960.overExtend.css</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/*
&nbsp;
Modifies the 960gs to allow elements to carry over
into the margins, so that they may snugly touch
the next grid over. Simply use the appropriate grid,
as you normally would, and then attach the additional
overExtend class to it, to make it over extend into
the margin. 
&nbsp;
Example:
&nbsp;
&lt;div id=&quot;myContainer&quot; class=&quot;grid_5 grid_5_overExtend&quot;&gt;
...
&lt;/div&gt;
&nbsp;
*/</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Margin Mod 12 Col */</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_1_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">80px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_2_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">160px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_3_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">240px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_4_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">320px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_5_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">400px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_6_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">480px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_7_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">560px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_8_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">640px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_9_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">720px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_10_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">800px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_12</span> <span style="color: #6666ff;">.grid_11_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">880px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">/* Margin Mod 16 Col */</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_1_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">60px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_2_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">120px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_3_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">180px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_4_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">240px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_5_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">300px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_6_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">360px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_7_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">420px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_8_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">480px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_9_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">540px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_10_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">600px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_11_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">660px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_12_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">720px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_13_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">780px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_14_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">840px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span>
<span style="color: #6666ff;">.container_16</span> <span style="color: #6666ff;">.grid_15_overExtend</span> <span style="color: #00AA00;">&#123;</span> <span style="color: #000000; font-weight: bold;">width</span><span style="color: #00AA00;">:</span><span style="color: #933;">900px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #000000; font-weight: bold;">margin-right</span><span style="color: #00AA00;">:</span><span style="color: #933;">-10px</span> !important<span style="color: #00AA00;">;</span> <span style="color: #00AA00;">&#125;</span></pre></div></div>


<div class="sociable">
<div class="sociable_tagline">
<strong>Share and Enjoy:</strong>
</div>
<ul>
	<li class="sociablefirst"><a rel="nofollow"  target="_blank" href="http://digg.com/submit?phase=2&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod&amp;bodytext=Lately%20I%27ve%20been%20working%20with%20the%20marvelously%20easy%20to%20use%20and%20understand%20CSS%20framework%2C%20960%20Grid%20System.%20After%20getting%20started%20with%20it%2C%20I%20very%20quickly%20noticed%20that%2C%20while%20easy%20and%20efficient%2C%20it%20has%20a%20flaw.%20You%20absolutely%20can%20NOT%20extend%20your%20elements%20" title="Digg"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/digg.png" title="Digg" alt="Digg" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://sphinn.com/index.php?c=post&amp;m=submit&amp;link=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F" title="Sphinn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/sphinn.png" title="Sphinn" alt="Sphinn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://delicious.com/post?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod&amp;notes=Lately%20I%27ve%20been%20working%20with%20the%20marvelously%20easy%20to%20use%20and%20understand%20CSS%20framework%2C%20960%20Grid%20System.%20After%20getting%20started%20with%20it%2C%20I%20very%20quickly%20noticed%20that%2C%20while%20easy%20and%20efficient%2C%20it%20has%20a%20flaw.%20You%20absolutely%20can%20NOT%20extend%20your%20elements%20" title="del.icio.us"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/delicious.png" title="del.icio.us" alt="del.icio.us" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;t=960gs%20Margin%20Mod" title="Facebook"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/facebook.png" title="Facebook" alt="Facebook" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.mixx.com/submit?page_url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod" title="Mixx"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/mixx.png" title="Mixx" alt="Mixx" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.google.com/bookmarks/mark?op=edit&amp;bkmk=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod&amp;annotation=Lately%20I%27ve%20been%20working%20with%20the%20marvelously%20easy%20to%20use%20and%20understand%20CSS%20framework%2C%20960%20Grid%20System.%20After%20getting%20started%20with%20it%2C%20I%20very%20quickly%20noticed%20that%2C%20while%20easy%20and%20efficient%2C%20it%20has%20a%20flaw.%20You%20absolutely%20can%20NOT%20extend%20your%20elements%20" title="Google Bookmarks"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/googlebookmark.png" title="Google Bookmarks" alt="Google Bookmarks" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.linkedin.com/shareArticle?mini=true&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod&amp;source=Michael+Hartmayer+Portfolio+of+an+Idea+Crafter&amp;summary=Lately%20I%27ve%20been%20working%20with%20the%20marvelously%20easy%20to%20use%20and%20understand%20CSS%20framework%2C%20960%20Grid%20System.%20After%20getting%20started%20with%20it%2C%20I%20very%20quickly%20noticed%20that%2C%20while%20easy%20and%20efficient%2C%20it%20has%20a%20flaw.%20You%20absolutely%20can%20NOT%20extend%20your%20elements%20" title="LinkedIn"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/linkedin.png" title="LinkedIn" alt="LinkedIn" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="https://favorites.live.com/quickadd.aspx?marklet=1&amp;url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod" title="Live"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/live.png" title="Live" alt="Live" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://www.myspace.com/Modules/PostTo/Pages/?u=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;t=960gs%20Margin%20Mod" title="MySpace"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/myspace.png" title="MySpace" alt="MySpace" class="sociable-hovers" /></a></li>
	<li><a rel="nofollow"  target="_blank" href="http://reddit.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod" title="Reddit"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/reddit.png" title="Reddit" alt="Reddit" class="sociable-hovers" /></a></li>
	<li class="sociablelast"><a rel="nofollow"  target="_blank" href="http://www.stumbleupon.com/submit?url=http%3A%2F%2Fwww.michaelhartmayer.com%2Fcss%2F960gs-margin-mod%2F&amp;title=960gs%20Margin%20Mod" title="StumbleUpon"><img src="http://www.michaelhartmayer.com/wp-content/plugins/sociable/images/stumbleupon.png" title="StumbleUpon" alt="StumbleUpon" class="sociable-hovers" /></a></li>
</ul>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.michaelhartmayer.com/css/960gs-margin-mod/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

