


<?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>Repeat Penguin &#187; css</title>
	<atom:link href="http://www.repeatpenguin.com/tags/css/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.repeatpenguin.com</link>
	<description>website design : xhtml : css : mobile web ~ Delivered Repeatedly by Jeremy Anderson</description>
	<lastBuildDate>Tue, 17 Nov 2009 01:11:41 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Cover Your Pixels</title>
		<link>http://www.repeatpenguin.com/2009/01/27/cover-your-pixels/</link>
		<comments>http://www.repeatpenguin.com/2009/01/27/cover-your-pixels/#comments</comments>
		<pubDate>Tue, 27 Jan 2009 23:20:31 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[web accessibility]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/?p=213</guid>
		<description><![CDATA[With the increase in standard, out of the factory screen resolution for computer displays from 800px by 600px to 1024px by 768px, web designers across the internets were freed to make use of a wider canvas on which to design beautiful websites. And we loved it. This is anything but news.

However, along with these changes, a minor oversight was exploited.]]></description>
			<content:encoded><![CDATA[<div class="liftout">
<p>With the increase in standard, out of the factory screen resolution for computer displays from 800px by 600px to 1024px by 768px, web designers across the internets were freed to make use of a wider canvas on which to design beautiful websites. And we loved it. <strong>This is anything but news.</strong></p>
</div>
<h2>A tiny oversight</h2>
<p>Most web designers have been designing for 1024px by 768px for quite some time now. But around the time this became standard, some other wonderful things were happening. In particular, web browser support for <acronym title="Cascading Style Sheets">CSS</acronym> and web standards had made a small jump. This too, was wonderful.</p>
<p>However, along with these improvements in the industry, one tiny little layout consideration has been commonly overlooked by web designers, when building out websites. This layout consideration has to do with both the increased standard in screen resolution and the newly supported <em>min-width</em> <acronym title="Cascading Style Sheets">CSS</acronym> attribute.</p>
<p>New websites were being designed for 1024px by 768px screen resolution. With the lower resolution of 800px by 600px no longer being considered a priority for a majority of sites, many developers failed to notice a minor oversight in coding practices, that was being exploited by the inclusion of min-width support.</p>
<p>This oversight relates to how browsers set the default for the &lt;html&gt; element. By default, &lt;html&gt; is given a width of 100%. When a web page with a canvas area greater than the width of the browser window is viewed, the content of that page is forced to go outside of this 100% width. This can cause some unsightly and unpredictable behavior in how the page is rendered. The result of this oversight will vary by layout, but under certain situations this can cause some usability problems. For example, if you have white text on a dark background and that background color does not cover the full width of the canvas, the text in that area would then be illegible.</p>
<p>Refer to the examples below. And please note, I am in no way trying to criticize the developer of this site or the company. I merely needed an example to demonstrate what I am referring to. I have seen this problem on many sites, by many very talented web developers, developers who I admire and and inspired by.</p>
<p><img src="http://www.repeatpenguin.com/wp-content/uploads/2009/01/mt-normal.jpg" alt="Website (Rendered Correctly)" title="Website (Rendered Correctly)" width="512" height="347" /><span class="caption">Website (Rendered Correctly)</span></p>
<p><img src="http://www.repeatpenguin.com/wp-content/uploads/2009/01/mt-800px.jpg" alt="Website (at 800px by 600px) showing  html width issue" title="Website (at 800px by 600px) showing  html width issue" width="512" height="347" /><span class="caption">Website (at 800px by 600px) showing &lt;html&gt; issue</span></p>
<h2>A simple solution</h2>
<p>If you haven&#8217;t already guessed, the solution is extremely simple. All you need to do is define a min-width for your &lt;html&gt; element, presumably at the width of your canvas.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;">html <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">min-width</span><span style="color: #00AA00;">:</span> <span style="color: #933;">960px</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2009/01/27/cover-your-pixels/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Are we there yet?</title>
		<link>http://www.repeatpenguin.com/2008/09/01/are-we-there-yet/</link>
		<comments>http://www.repeatpenguin.com/2008/09/01/are-we-there-yet/#comments</comments>
		<pubDate>Mon, 01 Sep 2008 19:53:41 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2008/09/01/are-we-there-yet/</guid>
		<description><![CDATA[We must be getting close. I can almost taste it. Is it time to say au revoir, to IE6?
]]></description>
			<content:encoded><![CDATA[<h2 style="color: #3d6671; font-size:300%; font-family: 'Trebuchet MS', Helvetica, sans-serif; font-weight: bold; line-height: 1">We must be getting close. I can almost taste it. Is it time to say <em lang="fr" style="color: #7ca190">au revoir</em>, to <acronym title="Internet Explorer 6">IE6</acronym>?</h2>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2008/09/01/are-we-there-yet/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>the tennis ball hack</title>
		<link>http://www.repeatpenguin.com/2008/03/15/the-tennis-ball-hack/</link>
		<comments>http://www.repeatpenguin.com/2008/03/15/the-tennis-ball-hack/#comments</comments>
		<pubDate>Sat, 15 Mar 2008 20:15:02 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Distractions]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[javascript]]></category>
		<category><![CDATA[keeping sane]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2008/03/15/the-tennis-ball-hack/</guid>
		<description><![CDATA[
There are times when you wish there was a clean, elegant way to go about a thing and there are times, as we all know, when this just isn&#8217;t possible. Such, is my state of mind at present. We all know what it&#8217;s like to take something that is beautiful and clean, and have to [...]]]></description>
			<content:encoded><![CDATA[<p class="banner"><img src="http://www.repeatpenguin.com/img/20080315/banner.jpg" alt="tennis ball walker hack for web development" /></p>
<p>There are times when you wish there was a clean, elegant way to go about a thing and there are times, as we all know, when this just isn&#8217;t possible. Such, is my state of mind at present. We all know what it&#8217;s like to take something that is beautiful and clean, and have to bend and contort it to work in environments it really shouldn&#8217;t be subjected to. Such is the peril of the web designer and developer. And such is the profound necessity of standards.</p>
<p>In times like this, I can&#8217;t help but wish we, as designers and developers, had something for our practice, akin to the good old <a href="http://www.ehow.com/how_2083788_make-walker-glide-more-easily.html">tennis ball hack</a>.</p>
<p>Without a doubt, I&#8217;m ranting about Internet Explorer. I know, it&#8217;s a tiresome subject, but we, nevertheless, exhaust countless, valuable hours contending with the <em><a href="http://www.google.com/search?hl=en&#038;client=firefox-a&#038;rls=org.mozilla%3Aen-US%3Aofficial&#038;hs=Cpw&#038;q=where+IE6+went+wrong&#038;btnG=Search">legacy</a></em> Microsoft left behind.</p>
<p class="tr"><span id="more-65"></span></p>
<p>I won&#8217;t blame Microsoft, entirely, for the recent neglect I&#8217;ve shown this blog. I&#8217;ve been buried in the final preparations, for the launch of the colossal project I&#8217;ve been working on for the past months. At the end of this stretch, starting in October of last year, and after roughly a dozen meetings and 160 odd, independent email strings, I think it&#8217;s understandable how spending the last 5 hours and 15 minutes trying to figure out why Internet Explorer would not except <em><span class="p">&#8216;click&#8217;</span></em> events and in the end discovering a simple switch to a <em><span class="p">&#8216;mousedown&#8217;</span></em> event worked fine, had me little feathers, a wee bit ruffled.</p>
<p>Don&#8217;t get me wrong, I was ready to cry like a little girl when I happened upon this senseless solution, but I&#8217;m not the type to easily let things go, <em>not</em> understood. So is life with IE.</p>
<p>The funny thing in all this, is I couldn&#8217;t stop thinking about the brilliance of the tennis ball hack and how wonderful it would be for us developers facing off with Internet Explorer, if we had a similar, beautiful solution to IE short comings. The fact, however, is that <em>we</em> are the tennis balls to the IE walker, in this equation.</p>
<p>Unlike our gainful pursuits in web standards, the tennis ball hack has not enjoyed the same glint on the horizon. In fact, rather than improve the design of the walker, as to not require the cannibalized tennis ball, <a href="http://www.allegromedical.com/walkers-c516/drive-tennis-balls-glides-p554770.html">companies have bloomed</a> to capitalize on this age old hack and take something away from the masses and a stab at the beauty of accessibility.</p>
<p  class="center"><img src="http://www.repeatpenguin.com/img/20080315/drive.jpg" alt="tennis ball hack for walkers" /></p>
<p>Alas, the parallels with Internet Explorer and the web design community are uncanny. I digress. It&#8217;s a beautiful, chilly day in San Francisco and I am off to try to catch the end of <a href="http://www.preemptivemedia.net/">Preemptive Media&#8217;s</a> presentation on <a href="http://www.pm-air.net/index.php">Air</a>, at <a href="http://soex.org/index.html">Southern Exposure</a>. Enjoy the weekend, and if you have a chance, pick up a can of tennis balls just for fun. You never know when you might need to erase black scuff marks from the tile or rescue your keys from inside your locked car.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2008/03/15/the-tennis-ball-hack/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Got Layout?</title>
		<link>http://www.repeatpenguin.com/2007/11/26/got-layout/</link>
		<comments>http://www.repeatpenguin.com/2007/11/26/got-layout/#comments</comments>
		<pubDate>Mon, 26 Nov 2007 12:00:16 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[hasLayout]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[web design]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2007/11/26/got-layout/</guid>
		<description><![CDATA[
* html body {display: none;} &#8230; I haven&#8217;t figured out why some think this hack is discriminatingGeorg



position: relativity
Ever wonder why applying a position: relative to an element in Internet Explorer can fix bizarre rendering problems? The standing theory, which is also a highly technical one, is that sometimes you just need to remind IE that [...]]]></description>
			<content:encoded><![CDATA[<div class="liftout">
<blockquote cite="http://www.gunlaug.no/"><p>* html body {display: none;} &#8230; I haven&#8217;t figured out why some think this hack is discriminating<cite><a href="http://www.gunlaug.no/">Georg</a></cite></p>
</blockquote>
</div>
<p><img src="http://www.repeatpenguin.com/wp-content/uploads/2007/11/gotlayout.jpg" alt="got layout" title="got layout" width="512" height="138" /></p>
<h3>position: <span class="p">relativity</span></h3>
<p>Ever wonder why applying a <span>position: relative</span> to an element in Internet Explorer can fix bizarre rendering problems? The standing theory, which is also a highly technical one, is that sometimes you just need to remind IE that things need to flow in their natural order. As <em>logical</em> as that may sound, the problem really has to do with a little thing called <span><em>hasLayout</em></span>. </p>
<h3>display: <span class="p"><span style="text-decoration: line-through">none</span> inline-block</span></h3>
<p>This is not a new cat, nor a new bag, for that matter. Web designers have long been plagued with the rendering inconsistencies offered up by Internet Explorer, such as the <a href="http://positioniseverything.net/explorer/peekaboo.html">peek-a-boo</a> bug. Each of us, individually and as a community, have mapped these inconsistencies out and made record of them in our own bag of CSS tricks. None-the-less, IE still proves to be the most loathsome part of the job for many.</p>
<p>Though IE7 has made some pleasing improvements over it&#8217;s predecessors, it&#8217;s still a pitch or seven away from being adequate. So, I was very excited when I found <a href="http://www.satzansatz.de/cssd/onhavinglayout.html">On Having Layout</a>, an on going project focussed on understanding IE&#8217;s proprietary &#8220;Layout&#8221; property and how it is messing up <em>our</em> world.</p>
<p class="tr"><span id="more-53"></span></p>
<h3>hasLayout = true</h3>
<p><a href="http://www.satzansatz.de/">Ingo Chao</a>, one of the editors on this project has a background as a clinical physician as well as an editor. The clinical side definitely comes out in this article. It&#8217;s a comprehensive, well articulated study into &#8220;what the hell is going on with IE&#8221;. If you know what CSS is, you should read <a href="http://www.satzansatz.de/cssd/onhavinglayout.html">On Having Layout</a>.</p>
<h3>hasLayout = false</h3>
<p>The concept of &#8220;<a href="http://msdn2.microsoft.com/en-us/library/ms533776.aspx">Layout</a>&#8221; as a property, is something only to be expected from Microsoft. And, as you see by following the link, if you are using Firefox at least, the Microsoft Development Center official resources for this strange little property are anything but laid out well.</p>
<p class="center"><img src="http://www.repeatpenguin.com/img/20071126/ie_development_center.jpg" alt="microsoft development center rendering issues" /><span class="caption">Controlling Presentation with Measurement and Location Properties in Quirks Mode . . . umm?</span></p>
<h3>A Definition of <em>hasLayout</em></h3>
<p>Just as some people have <em>character</em> and others, not so much, according to Internet Explorer, so too do some elements in html have <em>Layout</em> and others, not so much. Because IE applies a seemingly arbitrary discrimination over it&#8217;s elements, we are tasked with stamping out a multitude of rendering bugs, when we write code.</p>
<h4>So what is <span><em>Layout</em></span> and how can I get me some?</h4>
<p class="quoted">&#8220;Layout&#8221; is an IE/Win proprietary concept that determines how elements draw and bound their content, interact with and relate to other elements, and react on and transmit application/user events.<span><a href="http://www.satzansatz.de/cssd/onhavinglayout.html">www.satzansatz.de</a></span></p>
<p><em>Layout</em> is irreversibly triggered by CSS. <em>hasLayout</em> for elements can either be set to <em>true</em> or <em>false</em>. Some elements, such as <span>&lt;html&gt;</span>, <span>&lt;body&gt;</span>, <span>&lt;table&gt;</span> and <span>&lt;img&gt;</span> appear to have <em>Layout</em> by default. While others can be given <em>Layout</em> by applying select CSS properties, such as <span>position: absolute</span>, <span>float: left|right</span> and <span>display: inline-block</span>.</p>
<p>Unlike other proprietary CSS for browsers, there is no <em>layout</em> property to declare and we are forced to interact with it in this very indirect way.</p>
<h3>Spilled Milk</h3>
<p>The <em>hasLayout</em> stumbling block has affected all designers and coders in their attempts to cross-broswer their work, and will continue to do so, to be sure. Its&#8217; unusual nature can upset the rendering of boxes, as well as their children. As indicated in <a href="http://www.satzansatz.de/cssd/onhavinglayout.html">On Having Layout</a>, consequences of an element having, or not having <em>layout</em> can include:</p>
<p class="quoted">
Many common IE float bugs.<br />
Boxes themselves treating basic properties differently.<br />
Margin collapsing between a container and its<br />descendants.<br />
Various problems with the construction of lists.<br />
Differences in the positioning of background images.<br />
Differences between browsers when using scripting.
</p>
<h3>These Bugs We Know</h3>
<p>Anyone who has laid code for the web is well aware of IE rendering bugs.  The work <a href="http://positioniseverything.net/" title="Holly on PIE">Holly Bergevin</a>, <a href="http://www.satzansatz.de/css.html" title="Satzansatz â€” CSS">Ingo Chao</a>, <a href="http://www.brunildo.org/" title="Brunildo â€” CSS">Bruno Fassino</a>, <a href="http://positioniseverything.net/" title="Big John on PIE">John Gallant</a>, <a href="http://www.gunlaug.no/" title="Web-carpenter and farm assistent">Georg SÃ¸rtun</a> and <a href="http://emps.l-c-n.com/" title="Empty Spaces">Philippe Wittenbergh</a> have put into creating this reference text is something every developer can benefit from and it could end up saving <em>you</em> considerable, hair-pulling time.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2007/11/26/got-layout/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>web factory</title>
		<link>http://www.repeatpenguin.com/2007/06/20/web-factory/</link>
		<comments>http://www.repeatpenguin.com/2007/06/20/web-factory/#comments</comments>
		<pubDate>Thu, 21 Jun 2007 05:51:23 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[freelance]]></category>
		<category><![CDATA[keeping sane]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2007/06/20/web-factory/</guid>
		<description><![CDATA[
Delivering under tight deadlines is pretty much what you&#8217;re in for, if you&#8217;re a web designer. Knowing how to handle it, is what will make you a designer of the web. As many times as I&#8217;ve wanted to pull my hair out with unrealistic deadlines and &#8220;last minutes&#8221;, I also get my adrenaline fix out [...]]]></description>
			<content:encoded><![CDATA[<p class="banner"><img src="http://www.repeatpenguin.com/img/20070620/banner.jpg" alt="web design factory" title="this is actually a makeshift rat house, go figure." /></p>
<p>Delivering under tight deadlines is pretty much what you&#8217;re in for, if you&#8217;re a web designer. Knowing how to handle it, is what will make you a designer of the web. As many times as I&#8217;ve wanted to pull my hair out with unrealistic deadlines and &#8220;last minutes&#8221;, I also get my adrenaline fix out of it (not that I care to share this with clients ~ these are invisible pixels). I&#8217;m guessing, if you&#8217;re a web designer, you&#8217;re with me on this (don&#8217;t worry, you don&#8217;t have to admit it out loud).</p>
<p>Well, being as much a junkie as the next developer, I&#8217;m the first to to admit there is a limit. So here are some simple tips for how to manage your time so that the next time you get that &#8220;I needed it yesterday&#8221; call, you can calmly deliver in 3 days (seriously, nothing takes less than 3 days, whatever the task). When all is said and done, your 1 hour rush project is going to occupy you to some degree, over the next 3 days. Accept this. Plan for it. It will make your life less stressful.</p>
<p>That being said, a 3 day rush is almost unheard of. You&#8217;re probably looking at something that will take 2 or 3 weeks at least. So what can you do to help reduce the time you need to spend and squeeze this extra project into your schedule (and produce something that doesn&#8217;t suck)?</p>
<p class="tr"><span id="more-29"></span></p>
<h3>topside down</h3>
<p class="center"><img src="http://www.repeatpenguin.com/img/20070620/inverted-jenny.jpg" alt="inverted jenny" /></p>
<p>The war was on. Time was short. And on May 6, 1918 Congress set the rate for air mail postage at 24&cent;. In a mad rush to beat the inaugural flight on May 15, the fine artists at the Bureau of Engraving and Printing produced the finest example of rushed product ever. But don&#8217;t think you&#8217;ll be so lucky. In fact, the USPS was frantically trying to reacquire the 100 out 2 million air postage stamps that went out inverted. Turned out to be one the most lucrative mistakes ever.</p>
<p class="quote">So, you may have noticed the changing logo in the header. It&#8217;s not entirely related to this post. It&#8217;s an ongoing project I starting when I first published <span class="r">repeat</span><span class="p">Penguin</span>. Though making time for it is at the very least, challenging, the idea is to continuously add to the header logo throughout the year. I&#8217;m keeping a record of the variances in the <a href="http://www.repeatpenguin.com/about/logo_graveyard.htm">graveyard</a>.</p>
<h3>the seat of one&#8217;s pants</h3>
<p>That&#8217;s not the way things work for web designers. Mistakes are generally considered bad. You can&#8217;t avoid them entirely, but if you cut the fat out of your process, you&#8217;ll have that extra few moments to QA, and that can be the one thing that lets you hold tight to your sanity.</p>
<p>Systems will save you. I still struggle with this every day. The hardest thing in web design is managing. Prior to starting my own design firm, I was fortunate enough to work in variety of outfits, from design lackey to creative consultant to managing my own team of designers. Each place I worked, I learned something new, got a little bit more proficient. That said, I still find myself flying by the seat of my pants nearly every day.</p>
<p><img src="http://www.repeatpenguin.com/img/20070620/seat.jpg" alt="flying by the seat of one's pants" title="sorry drawing" /></p>
<p>The tricks that have helped me a great deal fall into 2 categories. The first being organization.</p>
<p>Having systems in place will earn you your wings. Have a system. From naming files, storing files and managing time lines.</p>
<p>These tasks should be wrote. You don&#8217;t want to waste your time looking for emails, hunting for files or saving out file versions. There are loads of tools out there to help you. Personally, my life depends on two. First, <a href="http://www.officetime.net/index.html">Office Time</a> and <a href="http://www.gmail.com">Gmail</a>. Between the two, I can track my hours (very important) with the click of the mouse and find all my correspondences. Throw in <a href="http://www.google.com/calendar/">Google Calendar</a> and you&#8217;ve got the basis for a business.</p>
<p>The second category could be labeled quite simply &#8220;don&#8217;t reinvent the wheel.&#8221; This is where we can talk about frameworks. I&#8217;m not talking about prefab templates. I&#8217;ve never found them very useful and if your goal is to become a stronger designer/developer, I don&#8217;t think they are very helpful. Rather than templates, I&#8217;m talking about usable frameworks. We&#8217;ve all seen frameworks for Javascript, PHP, Java and so forth. They are designed to serve as a set of tools and libraries to assist in conventional tasks. If you apply this thinking to CSS, you can save yourself a lot of work.</p>
<p>Every project I&#8217;ve worked on, there are basic style sets in common. I have always preferred keeping all my CSS in one document, thus limiting server hits and giving myself a visual cascade I can see all at once. Clearly commenting your styles and using a standard naming convention goes a long way.</p>
<p class="center"><img src="http://www.repeatpenguin.com/img/20070620/css.jpg" alt="clean css example" /></p>
<h3>if it floats (your boat)</h3>
<p>Stick to what works for you. In the midst of writing this article, I came across <a href="http://alistapart.com/articles/frameworksfordesigners">this brilliant article</a> by <a href="http://alistapart.com/authors/c/jeffcroft">Jeff Croft</a> on ALA. Go figure. But he hits on some great points on this topic, if you want to pros and cons. Me, I&#8217;ve found a single CSS file with clearly marked code works best. I have a core framework CSS files, that zeros out all the browser defaults and sets up all of my globals and typical architectural classes. This is just a framework, I haven&#8217;t actually applied style to any of it. This step gives you a leap into the next project. You can start with something clean and organized, right off the bat.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2007/06/20/web-factory/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>keeping sane ~ web design tool box</title>
		<link>http://www.repeatpenguin.com/2007/05/26/keeping-sane-web-design-tool/</link>
		<comments>http://www.repeatpenguin.com/2007/05/26/keeping-sane-web-design-tool/#comments</comments>
		<pubDate>Sat, 26 May 2007 22:20:09 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[keeping sane]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2007/05/26/keeping-sane-web-design-tool-box/</guid>
		<description><![CDATA[
Life under fire has been getting the best of me lately. If there&#8217;s one thing I learned doing web design, is that you have to be able to deliver your best under pressure. And more importantly, you have to know how and when to still make time for yourself. I wouldn&#8217;t think about complaining about [...]]]></description>
			<content:encoded><![CDATA[<p class="banner"><img src="http://www.repeatpenguin.com/img/20070526/TOOLBOX.jpg" alt="web design tool box" /></p>
<p>Life under fire has been getting the best of me lately. If there&#8217;s one thing I learned doing web design, is that you have to be able to deliver your best under pressure. And more importantly, you have to know how and <span><em>when</em></span> to still make time for yourself. I wouldn&#8217;t think about complaining about <span><em>too</em></span> much work. It&#8217;s the best thing a designer could ever want. But when it comes down to it, sanity is <em>more</em> important. On top of that, if you <span><a href="http://www.anendlessarray.com">work with the person you&#8217;re dating</a></span>, it becomes all the more important. This is why I&#8217;m starting a series on <span class="r">keeping sane, in web design</span>.</p>
<p>Oddly enough, one of the things that helps me is surfing the web. I know. Last thing most designers would want to spend their down time on. So, I&#8217;m starting things off with a few notable finds.</p>
<h3>Clean CSS</h3>
<p class="center"><a href="http://www.cleancss.com/"><img src="http://www.repeatpenguin.com/img/20070526/css.jpg" alt="Clean CSS" /></a></p>
<p><a href="http://www.cleancss.com/">Clean CSS</a> is a powerful CSS optimizer. It works by taking your CSS code and making it cleaner and more concise. It works by automatically merging same CSS selectors and properties and returning clean, well-formatted code. It&#8217;s not a validator, but it works surprisingly well.</p>
<h3>Typetester</h3>
<p class="center"><a href="http://typetester.maratz.com/"><img src="http://www.repeatpenguin.com/img/20070526/typesetter.jpg" alt="Typesetter" /></a></p>
<p>The <a href="http://typetester.maratz.com/">Typetester</a> is an online application for comparison of the fonts for the screen. Itsâ€™ primary role is to make web designerâ€™s life easier. They keep their database up-to-date. It&#8217;s a great little tool.</p>
<h3>cl1p</h3>
<p class="center"><a href="http://cl1p.net/"><img src="http://www.repeatpenguin.com/img/20070526/clip.jpg" alt="cl1p" /></a></p>
<p>Every wish you could <span>Copy</span> something on one computer and <span>Paste</span> it on another? <a href="http://cl1p.net/">cl1p</a> allows you to do just that. Copy and paste from one computer to another. It&#8217;s a pretty simple concept and I love it.</p>
<h3>what&#8217;s special about this number</h3>
<p class="center"><a href="http://www.stetson.edu/~efriedma/numbers.html"><img src="http://www.repeatpenguin.com/img/20070526/numbers.jpg" alt="what's special about this number" /></a></p>
<p>This is for the geek in me. <a href="http://www.stetson.edu/~efriedma/numbers.html">What&#8217;s special about numbers</a>, is all about numbers. &#8216;Nough said.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2007/05/26/keeping-sane-web-design-tool/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>friends of PNG</title>
		<link>http://www.repeatpenguin.com/2007/04/14/friends-of-png/</link>
		<comments>http://www.repeatpenguin.com/2007/04/14/friends-of-png/#comments</comments>
		<pubDate>Sat, 14 Apr 2007 17:57:18 +0000</pubDate>
		<dc:creator>Jeremy Anderson</dc:creator>
				<category><![CDATA[Articles]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[html]]></category>
		<category><![CDATA[javascript]]></category>

		<guid isPermaLink="false">http://www.repeatpenguin.com/2007/04/14/friends-of-png/</guid>
		<description><![CDATA[Alpha PNG Backgrounds in IE

In the process of redesigning a site for a client, I stumbled into my long lost, woeful friend PNG. Actually, I shouldn&#8217;t be so hard on PNG. We all know who&#8217;s fault it really is. There are a ton of sources out there, offering solutions for the IE bug, but I [...]]]></description>
			<content:encoded><![CDATA[<h2>Alpha PNG Backgrounds in IE</h2>
<p class="center"><img alt="cross browser variable opacity with PNG" class="nb" src="http://www.repeatpenguin.com/img/20070413/code.jpg" /></p>
<p>In the process of redesigning a site for a client, I stumbled into my long lost, woeful friend PNG. Actually, I shouldn&#8217;t be so hard on PNG. We all know who&#8217;s fault it really is. There are a ton of <a href="http://www.google.com/search?q=+iE+transparent+png+fix&#038;ie=utf-8&#038;oe=utf-8&#038;aq=t&#038;rls=org.mozilla:en-US:official&#038;client=firefox-a">sources</a> out there, offering solutions for the IE bug, but I needed something a little more comprehensive and involved a little less leg work.</p>
<p>My research led me to numerous sites, offering solutions to my PNG woes. Most of which either built upon or reiterated the <a href="http://www.alistapart.com/articles/pngopacity/">techniques</a> <a href="http://www.lovitt.net/">Michael Lovitt</a> discussed in <a href="http://www.alistapart.com/articles/pngopacity/">this article</a>, way back in the day.</p>
<p>For all the of the progress we&#8217;ve seen with IE7 (which <em>DOES</em> support transparent PNGs), we&#8217;re still left with the fact that it&#8217;s just a carrot dangling on a stick for a while more. We still have to deal with its predecessor and thus, I needed a clean solution that would do the leg work for me.</p>
<h3>Ping back PNG forward</h3>
<p class="center"><img alt="transparent PNGs for hidden divs" src="http://www.repeatpenguin.com/img/20070413/popdiv.jpg" /></p>
<p>To start with, there is a very simple solution to get IE6 to properly render transparent PNGs, using the <a href="http://msdn.microsoft.com/workshop/author/filter/reference/filters/alphaimageloader.asp">Microsoft AlphaImageLoader</a>. For simple tasks, I prefer to do this strictly using CSS and an IE6 conditional statement.</p>

<div class="wp_syntax"><div class="code"><pre class="css" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">/* IE6 PNG transparency FIX {--MEH!--} ----*/</span>
<span style="color: #00AA00;">*</span> html <span style="color: #cc00cc;">#nav</span> ul li <span style="color: #00AA00;">&#123;</span><span style="color: #000000; font-weight: bold;">background-image</span><span style="color: #00AA00;">:</span> <span style="color: #993333;">none</span><span style="color: #00AA00;">;</span>
filter<span style="color: #00AA00;">:</span> progid<span style="color: #3333ff;">:DXImageTransform</span><span style="color: #6666ff;">.Microsoft</span><span style="color: #6666ff;">.AlphaImageLoader</span> »
<span style="color: #00AA00;">&#40;</span>src<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;http://www.domain.com/img/myPNG.png&quot;</span><span style="color: #00AA00;">,</span> »
sizingMethod<span style="color: #00AA00;">=</span><span style="color: #ff0000;">&quot;scale&quot;</span><span style="color: #00AA00;">&#41;</span><span style="color: #00AA00;">;</span><span style="color: #00AA00;">&#125;</span></pre></div></div>

<p class="quote">(Line wraps are marked <span class="linewrap">»</span> <em>-Ed</em>)</p>
<p class="clear">This method of handling PNGs usually does the trick, for simple application. It&#8217;s concise and easy to implement. On an individual basis, it&#8217;s perfect. I should mention, there are two ways you can define your sizingMethod. The first, &#8220;scale&#8221; (shown above), is perfect for some repeating background images. There is a drawback. It works great for 1px by 1px images and 1px images for x or y repeats, but for tiling images you get some unappealing distortion happening. The other value for sizingMethod is &#8220;crop&#8221;. This is for non-repeating background images.</p>
<h3>the All-Around PNG</h3>
<p>This time, however, I needed something that would do a little more of the leg work for me. I needed something that would handle all of my PNGs at once. I stumbled across <a href="http://www.flopidesign.com/2006/05/26/transparent-pngs-used-as-css-background-images-in-internet-explorer/">this article</a> by <a href="http://www.flopidesign.com">John Labriola</a>, which proved to be the best solution for my needs. He worked off of a solution Drew, of <a href="http://allinthehead.com/retro/69">All in the Head</a> and came up with a stream lined approach, using minimal JavaScript. <a href="http://www.flopidesign.com/2006/05/26/transparent-pngs-used-as-css-background-images-in-internet-explorer/">Check it out</a>.</p>
<p>Based on <a href="http://allinthehead.com/retro/289/sleight-update-alpha-png-backgrounds-in-ie">sleight</a> he uses a simple function that loops through document.all to find all of your background PNGs and fix them. You can download his updated version of <a class="download" href="http://www.repeatpenguin.com/scripts/bgsleight.js">bgsleight.js</a> here.</p>
<h3>Better dropdowns and hidden divs, using transparent PNGs</h3>
<p class="center"><img alt="transparent PNG for drop menu" src="http://www.repeatpenguin.com/img/20070413/dropdown.jpg" /></p>
<p>Now you&#8217;ve got all you need to make sexy dropdowns, hidden divs, icons and whatever else you come up with.<code></code></p>
]]></content:encoded>
			<wfw:commentRss>http://www.repeatpenguin.com/2007/04/14/friends-of-png/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
