<?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>crimulus-dot-com &#187; scrollbar</title>
	<atom:link href="http://www.crimulus.com/tag/scrollbar/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.crimulus.com</link>
	<description>A blog; ineptly autobiographical</description>
	<lastBuildDate>Sun, 29 Jan 2012 10:20:00 +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>Internet Explorer Legacy Issues &#8212; 100% width and horizontal scrolling</title>
		<link>http://www.crimulus.com/2009/06/22/internet-explorer-legacy-issues-100-width-and-horizontal-scrolling/</link>
		<comments>http://www.crimulus.com/2009/06/22/internet-explorer-legacy-issues-100-width-and-horizontal-scrolling/#comments</comments>
		<pubDate>Mon, 22 Jun 2009 15:21:23 +0000</pubDate>
		<dc:creator>Jeremy</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[How-To]]></category>
		<category><![CDATA[100% width]]></category>
		<category><![CDATA[background]]></category>
		<category><![CDATA[body elements]]></category>
		<category><![CDATA[div]]></category>
		<category><![CDATA[horizontal scroll bar]]></category>
		<category><![CDATA[html quirks]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[ie7]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[linear objects]]></category>
		<category><![CDATA[reason]]></category>
		<category><![CDATA[scrollbar]]></category>
		<category><![CDATA[use]]></category>
		<category><![CDATA[vertical scrollbar]]></category>
		<category><![CDATA[viewport]]></category>
		<category><![CDATA[width]]></category>

		<guid isPermaLink="false">http://www.coffeecuphalfmoons.com/?p=117</guid>
		<description><![CDATA[One of the beautiful idiosyncrasies (some calls &#8216;em bugs I call &#8216;em idiosyncrasies) of IE that I just had the pleasure of dealing with has to do with the use of the width: 100% property. Basically, I fixated the html and body elements, then built a 100%, 100% height div (no padding, margins) inside it [...]]]></description>
			<content:encoded><![CDATA[<p>One of the beautiful idiosyncrasies (some calls &#8216;em bugs I call &#8216;em idiosyncrasies) of IE that I just had the pleasure of dealing with has to do with the use of the width: 100% property.</p>
<p>Basically, I fixated the html and body elements, then built a 100%, 100% height div (no padding, margins) inside it so that I could better control the scrolling of my page compared to other fixed objects.</p>
<p>At the top of that replacement div, I had 3 linear objects making a header.  One was 110px tall at the top, the next was 22px immediately below that (top: 110px), and the next was 10px, immediately below that (top: 132px).</p>
<p>Each of these elements was 100% width (entire width of the viewport).  For some bizare, wacky reason, I kept getting a horizontal scroll bar, even though everything fit on the page.</p>
<p>It was my top element, which made no sense to me because they were all 3 position: absolute; width: 100%; and fixed height, just with varied positioning.  In debugging, I was stumped, as it didn&#8217;t matter where I put the objects, in what order, etc.  That top div (the one that was originally on top) was always wider than the screen &#8212; in fact, it was wider by the width of the scrollbar.  For some reason, it was getting its width of the viewport from BEHIND the vertical scrollbar, whereas the other 2 for some reason did as they should and excluded the width of the vertical scrollbar in their calculations.</p>
<p>Then I realized, but &#8220;no it couldn&#8217;t be?!?&#8221; &#8212; the 2 divs that were working properly had a background image.  More specifically, their background was defined as background: #xxxxxx url(/file/location) repeat-x; but the other div simply had background-color: #111111; as its definition.</p>
<p>So for some reason, using background: vs. background-color: causes the always intelligent IE to change its interpretations.  Go figure right?</p>
<p>So the workaround?  Use background: instead.</p>
<p>background: #111111 url() no-repeat;</p>
<p>And voila, it was fixed.</p>
<p>I HATE YOU IE.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.crimulus.com/2009/06/22/internet-explorer-legacy-issues-100-width-and-horizontal-scrolling/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

