<?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>Really Aced &#187; float right width</title>
	<atom:link href="http://blog.sommestad.net/tag/float-right-width/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.sommestad.net</link>
	<description>Web and Cocoa development through the eyes of Kristofer Sommestad, a SWAD developer.</description>
	<lastBuildDate>Sun, 23 Jan 2011 12:21:05 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1</generator>
		<item>
		<title>Day-to-day Internet Explorer Compatibility Issues</title>
		<link>http://blog.sommestad.net/2009/06/day-to-day-internet-explorer-compatibility-issues/</link>
		<comments>http://blog.sommestad.net/2009/06/day-to-day-internet-explorer-compatibility-issues/#comments</comments>
		<pubDate>Tue, 23 Jun 2009 09:18:40 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Browser Compatibility]]></category>
		<category><![CDATA[browser compatibility]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[css issues]]></category>
		<category><![CDATA[float]]></category>
		<category><![CDATA[float right width]]></category>
		<category><![CDATA[ie6]]></category>
		<category><![CDATA[internet explorer]]></category>
		<category><![CDATA[internet explorer 6]]></category>
		<category><![CDATA[magic spacing]]></category>
		<category><![CDATA[opacity animation jagged]]></category>
		<category><![CDATA[w3c]]></category>

		<guid isPermaLink="false">http://blog.sommestad.net/?p=105</guid>
		<description><![CDATA[When working with web sites, you often come across compatibility issues due to the users&#8217; variations in browser usage. The vast majority (around 70-75%) of the users still use Internet Explorer as their browser, while most of the development is done in Firefox (thanks to the excellent Firebug and similar tools). Hence, from time to [...]]]></description>
			<content:encoded><![CDATA[<p>When working with web sites, you often come across compatibility issues due to the users&#8217; variations in browser usage. The vast majority (around 70-75%) of the users still use Internet Explorer as their browser, while most of the development is done in Firefox (thanks to the excellent Firebug and similar tools).</p>
<p>Hence, from time to time you need to adjust your code to make it work in all &#8211; well, actually it&#8217;s mostly about making it work in IE too, as it&#8217;s not as good as the others in following standards &#8211; browsers.</p>
<h3>A handful of issues</h3>
<p>A few days ago, I was testing a site in IE (both 6 and 7) and figured I might as well write down the (CSS) issues I came across:</p>
<ul>
<li>Issue: Opacity animation of text looks jagged.<br />
Solution: Adding <em>background-color</em> to the animated element.</li>
<li>Issue: Some elements get &#8220;magic&#8221; padding/spacing at the bottom, due to the whitespace in the code.<br />
Solution: Adding <em>overflow: hidden</em> to the element(s).</li>
<li>Issue: Elements within links do not inherit text-decoration, especially on <em>:hover</em>.<br />
Solution: Set text-decoration on inner elements too, e.g. <em>text-decoration: none</em>.</li>
<li>Issue: Right floated elements without a set width expands to 100%.<br />
Solution: Always set width of floated elements &#8211; particularily those floating to the right. <strong><br />
Note</strong>: The W3C CSS2 specs used to state that floated elements require an explicitly set width, but that section has now been removed. Do note that it&#8217;s probably good practice to set width on floated elements if it&#8217;s vital to always keep them next to each other.</li>
<li>Issue: Lists (<em>ul li</em>) treating list-style-position and margins differently in FF and IE.<br />
Solution: Always use <em>list-style-position: outside</em> and <em>margin-left</em> instead of <em>list-style-position: inside</em>.</li>
<li>Issue: Lists with images gets no padding to text.<br />
Solution: Adding <em>padding-left </em>to the list element (<em>li</em>).</li>
<li>Issue: Block elements aren&#8217;t centered in Internet Explorer.<br />
Solution: Make sure to set both side margins to <em>auto</em> <strong>and</strong> <em>text-align: center</em>.</li>
</ul>
<p>Note that these are only a handful of the issues that you can come across.</p>
<h3>Position is Everything</h3>
<p>Apart from Googling answers to CSS issues, I&#8217;ve got a favourite site for finding and solving Internet Explorer related problems: <a href="http://positioniseverything.net/">Position Is Everything</a>. After a while, you know these issues by hand, but until you do, it&#8217;s really a good place to get help before tearing your hair out&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://blog.sommestad.net/2009/06/day-to-day-internet-explorer-compatibility-issues/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

