<?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>#adamSentz{dot:com;} &#187; Web Design</title>
	<atom:link href="http://adamsentz.com/category/web/web-design/feed/" rel="self" type="application/rss+xml" />
	<link>http://adamsentz.com</link>
	<description>= Mac + Web</description>
	<lastBuildDate>Thu, 14 May 2009 19:34:47 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS Caching Hack</title>
		<link>http://adamsentz.com/css-caching-hack/</link>
		<comments>http://adamsentz.com/css-caching-hack/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 21:06:07 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[CSS]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=122</guid>
		<description><![CDATA[Great tip from Stefan Hayden on how to make sure users get the latest version of you stylesheets when you do an update.
The trick is to pass a variable on the end of the CSS file like so:



&#60;link rel="stylesheet"
href="http://www.stefanhayden.com/style.css?version=1"
type="text/css" /&#62;



When a browser looks to see if it has anything cashed it compares file names. If [...]]]></description>
			<content:encoded><![CDATA[<p>Great <a href="http://www.stefanhayden.com/blog/2006/04/03/css-caching-hack/">tip</a> from <a href="http://www.stefanhayden.com/blog/">Stefan Hayden</a> on how to make sure users get the latest version of you stylesheets when you do an update.</p>
<blockquote><p>The trick is to pass a variable on the end of the CSS file like so:</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre>&lt;link rel="stylesheet"
href="http://www.stefanhayden.com/style.css?version=1"
type="text/css" /&gt;</pre>
</div>
<p></code></div>
</div>
<p>When a browser looks to see if it has anything cashed it compares file names. If you have “style.css” in your cashe then it’s not going to download it again. But if the browser compares “style.css?version=1″ to what the new HTML is “style.css?version=2″ then the browser thinks they are different files and needs to download the new CSS file.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/css-caching-hack/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>In Defense of Eye Candy</title>
		<link>http://adamsentz.com/in-defense-of-eye-candy/</link>
		<comments>http://adamsentz.com/in-defense-of-eye-candy/#comments</comments>
		<pubDate>Wed, 22 Apr 2009 20:02:34 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=117</guid>
		<description><![CDATA[Fantastic article by Stephen P. Anderson via A List Apart about how aesthetics affect usability.
Basically, when we are relaxed, our brains are more ﬂexible and more likely to ﬁnd workarounds to difﬁcult problems. In contrast, when we are frustrated and tense, our brains get a sort of tunnel vision where we only see the problem [...]]]></description>
			<content:encoded><![CDATA[<p>Fantastic <a href="http://www.alistapart.com/articles/indefenseofeyecandy">article</a> by <a href="http://www.poetpainter.com/">Stephen P. Anderson</a> via <a href="http://www.alistapart.com/">A List Apart</a> about how aesthetics affect usability.</p>
<blockquote><p>Basically, when we are relaxed, our brains are more ﬂexible and more likely to ﬁnd workarounds to difﬁcult problems. In contrast, when we are frustrated and tense, our brains get a sort of tunnel vision where we only see the problem in front of us. How many times, in a ﬁt of frustration, have you tried the same thing over and over again, hoping it would somehow work the seventeenth time around?</p>
<p>Another explanation: We want those things we ﬁnd pleasing to succeed. We’re more tolerant of problems with things that we ﬁnd attractive.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/in-defense-of-eye-candy/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer Button width/padding bug.</title>
		<link>http://adamsentz.com/internet-explorer-button-widthpadding-bug/</link>
		<comments>http://adamsentz.com/internet-explorer-button-widthpadding-bug/#comments</comments>
		<pubDate>Fri, 07 Nov 2008 22:28:10 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=90</guid>
		<description><![CDATA[Recently while working on a web-app at my day job I ran across another IE specific rendering idiosyncrasy. I noticed that if I put lengthier text in a button (be it a button tag or and input type=&#8221;button&#8221;) that IE would progressively increase the amount of padding on either side of the text. Or at least [...]]]></description>
			<content:encoded><![CDATA[<p>Recently while working on a web-app at my day job I ran across another IE specific rendering idiosyncrasy. I noticed that if I put lengthier text in a button (be it a button tag or and input type=&#8221;button&#8221;) that IE would progressively increase the amount of padding on either side of the text. Or at least that&#8217;s what it looked like to me.</p>
<p>Ordinarily I think this issue goes totally unnoticed &#8211; there isn&#8217;t a lot of info out there on the web about it (at least that&#8217;s what I thought at the time &#8211; I&#8217;ve since found a <a href="http://www.google.com/search?hl=en&amp;q=internet+explorer+button+padding&amp;btnG=Google+Search&amp;aq=1&amp;oq=internet+explorer+button" target="_blank">number of sites</a> covering the topic). Most of the time our buttons have text like <strong>Save</strong>, <strong>Submit</strong>, <strong>Go</strong> &#8211; that sort of thing. </p>
<p>I was flummoxed by this for a while. I was, after all, declaring my padding explicitly, and IE seemed to be rendering it. Rendering it and then some more depending on how much text was in the box. How could I trick IE into behaving like a nice, normal, standardsy browser?</p>
<p>I searched and searched the <a href="http://en.wikipedia.org/wiki/Series_of_tubes" target="_blank">inter-tubes</a> until I found a simple solution in the comments of a site that, I think, was in Portuguese. Unfortunately I didn&#8217;t make a note of where it was so I can&#8217;t give credit, nor could I understand anything that was written other than</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre> overflow: visible;</pre>
</div>
<p></code></div>
</div>
<p>Now there were other folks on other sites advocating all manner of other, additional style declarations &#8211; setting width to <strong>auto</strong> or to <strong>1%</strong> - none of which worked for me. But as soon as I popped that declaration in on my inputs IE&#8217;s buttons fell in line.</p>
<p>If you&#8217;re experiencing the same issue you might consider adding this to your style sheet.</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre> * html input { overflow: visible; }</pre>
</div>
<p></code></div>
</div>
<p>Non-IE browsers will ignore it and, really, you aren&#8217;t telling them to do much of anything anyway (inputs don&#8217;t generally overflow you know). </p>
<p>If you find that this doesn&#8217;t solve all of your IE button width related issues then I suggest you pursue some <a href="http://www.google.com/search?hl=en&amp;q=internet+explorer+button+padding&amp;btnG=Google+Search&amp;aq=1&amp;oq=internet+explorer+button" target="_blank">further reading</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/internet-explorer-button-widthpadding-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Internet Explorer 100% Width Bug</title>
		<link>http://adamsentz.com/internet-explorer-100-width-bug/</link>
		<comments>http://adamsentz.com/internet-explorer-100-width-bug/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 23:23:41 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[IE]]></category>
		<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=83</guid>
		<description><![CDATA[In the course of working on a new web-based app at my day job I&#8217;ve come across a pretty common, but perplexing Internet Explorer bug. Perplexing because there is no silver-bullet fix. It is simply an error in the way IE renders, so there isn&#8217;t a simple style declaration fix for it. A colleague and [...]]]></description>
			<content:encoded><![CDATA[<p>In the course of working on a new web-based app at my day job I&#8217;ve come across a pretty common, but perplexing Internet Explorer bug. Perplexing because there is no silver-bullet fix. It is simply an error in the way IE renders, so there isn&#8217;t a simple style declaration fix for it. A colleague and I spent the better part of a day figuring out what seems to be a fairly optimal solution so I thought I&#8217;d share.</p>
<p>In our case we have block elements, tables being the main culprit, explicitly set to 100% width inside a container div which will scroll vertically as it needs to. The problem is that IE calculates what &#8220;100%&#8221; is <em>before</em> it applies the scroll bar. So when the scroll bar is applied IE&#8217;s &#8220;100%&#8221; value is now wider than the actual viewing area. This causes the element set to 100% to be partially covered by the right-hand scroll bar and for a horizontal scroll bar to appear.</p>
<p>After tying to find a solution using conventional CSS or JavaScript to get the offending elements to behave we turned to using IE style expressions. This is essentially what we did.</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre>element_selector {
width: expression(this.parentNode.offsetHeight &gt;
this.parentNode.scrollHeight ? '100%' :
parseInt(this.parentNode.offsetWidth - XX) + 'px');
}</pre>
</div>
<p></code></div>
</div>
<p>So we&#8217;re telling the element that if it is not taller than it&#8217;s parent then it should be 100% otherwise it should be the width of its parent minus a specific value (XX): in our case the padding plus the width of the scrollbar.</p>
<p>I&#8217;ve successfully applied this technique in a few different places and it hasn&#8217;t bothered me since (especially since they are hidden in an IE specific stylesheet behind <a href="http://msdn.microsoft.com/en-us/library/ms537512(VS.85).aspx" target="_blank">conditional comments</a>. This isn&#8217;t to say I&#8217;m a fan of CSS expressions &#8211; they shouldn&#8217;t be necessary &#8211; but in this case they&#8217;ve proven to be the simplest and most reliable solution to an annoying IE problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/internet-explorer-100-width-bug/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Clearing Floats the Easy Way</title>
		<link>http://adamsentz.com/clearing-floats-the-easy-way/</link>
		<comments>http://adamsentz.com/clearing-floats-the-easy-way/#comments</comments>
		<pubDate>Sat, 23 Aug 2008 22:52:55 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Web Design]]></category>
		<category><![CDATA[CSS]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=50</guid>
		<description><![CDATA[If you, like me, have spent any time devising CSS based layouts then you&#8217;ll no doubt have run into this issue. Here&#8217;s how I deal with it and some further reading on the subject.
Floated elements are removed from the document flow, and other elements flow around them. This is great, and very useful but the [...]]]></description>
			<content:encoded><![CDATA[<p>If you, like me, have spent any time devising CSS based layouts then you&#8217;ll no doubt have run into this issue. Here&#8217;s how I deal with it and some further reading on the subject.</p>
<p>Floated elements are removed from the document flow, and other elements flow around them. This is great, and very useful but the catch is that removing an element from the document flow means that as far as its parent is concerned it no longer has height. So if the tallest element in your layout is, or might at any time be, floated you&#8217;ve got a problem.</p>
<p>So we need a way to prop the parent open. Any designer worth his salt will likely figure out this first, ugly method and immediately be ashamed. I know, because not so long ago I found myself in this very position and this is what I did.</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre>&#60;div>
    &#60;div style="float:left;">Floated Content&#60;/div>
&#60;/div></pre>
</div>
<p></code></div>
</div>
<p>I know. Shameful. But there&#8217;s a <a href="http://www.positioniseverything.net/easyclearing.html" target="_blank">better way</a>. In fact there may be yet an <a href="http://www.sitepoint.com/blogs/2005/02/26/simple-clearing-of-floats/" target="_blank">even better way</a> in certain cases, but I&#8217;m going to focus on the way that I&#8217;ve been employing to great success.</p>
<p>It should be noted that I did not come up with this technique. It was created by Tony Aslett, of <a href="http://csscreator.com" target="_blank">csscreator.com</a> and found its way to me via <a href="http://www.positioniseverything.net/" target="_blank">Position is Everything</a>. I fully recommend reading the PiE article as I&#8217;m not going to delve into the specifics.</p>
<p>So here&#8217;s the CSS I use</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre>.clear:after {
    content: ".";
    display: block;
    height: 0;
    clear: both;
    visibility: hidden;
}</pre>
</div>
<p></code></div>
</div>
<p>And the modified markup</p>
<div class='code_parent'>
<div class='code_child'><code>
<div class='pre_container'>
<pre>&#60;div class="clear">
    &#60;div style="float:left;">Floated Content&#60;/div>
&#60;/div></pre>
</div>
<p></code></div>
</div>
<p>Ta da! Look at that pristine markup. Again, if you want to know how and why this works read the <a href="http://www.positioniseverything.net/easyclearing.html" target="_blank">PiE article</a>, or if you don&#8217;t care just use it and be glad.</p>
<p>PS &#8211; In addition to self-clearing floats I find this technique very useful for ensuring that absolutely positioned elements with scrolling content don&#8217;t lose their bottom padding (which drove me nuts for a while).</p>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/clearing-floats-the-easy-way/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>A List Apart: The Survey 2008</title>
		<link>http://adamsentz.com/a-list-apart-the-survey-2008/</link>
		<comments>http://adamsentz.com/a-list-apart-the-survey-2008/#comments</comments>
		<pubDate>Tue, 29 Jul 2008 16:42:27 +0000</pubDate>
		<dc:creator>adam</dc:creator>
				<category><![CDATA[Web Design]]></category>

		<guid isPermaLink="false">http://adamsentz.com/?p=22</guid>
		<description><![CDATA[Until last year no one collected data on people who make websites. If you make websites and you missed it last year, well, it&#8217;s a new year!

]]></description>
			<content:encoded><![CDATA[<p>Until last year no one collected data on people who make websites. If you make websites and you missed it last year, well, it&#8217;s a new year!</p>
<p style="text-align: center;"><a href="http://alistapart.com/articles/survey2008"><img class="size-medium wp-image-23      aligncenter" title="i-took-the-2008-survey" src="http://adamsentz.com/wp-content/uploads/2008/07/i-took-the-2008-survey.gif" alt="" width="180" height="46" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://adamsentz.com/a-list-apart-the-survey-2008/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
