<?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; IE</title>
	<atom:link href="http://adamsentz.com/category/microsoft/ie/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>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>
	</channel>
</rss>
