<?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>Consilience Media &#187; IE6</title>
	<atom:link href="http://www.consil.co.uk/blog/tag/ie6/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.consil.co.uk</link>
	<description></description>
	<lastBuildDate>Thu, 12 Jan 2012 12:03:04 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
<xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" />
		<item>
		<title>Menu Challenges 2</title>
		<link>http://www.consil.co.uk/blog/2008/08/26/menu-challenges-2/</link>
		<comments>http://www.consil.co.uk/blog/2008/08/26/menu-challenges-2/#comments</comments>
		<pubDate>Tue, 26 Aug 2008 20:59:14 +0000</pubDate>
		<dc:creator>Phill Brown</dc:creator>
				<category><![CDATA[Styling]]></category>
		<category><![CDATA[CSS]]></category>
		<category><![CDATA[IE6]]></category>
		<category><![CDATA[Internet Explorer]]></category>

		<guid isPermaLink="false">http://www.consil.co.uk/blog/?p=25</guid>
		<description><![CDATA[IE6 is broken. [sourcecode language="css"] #menu ul.level2 li { display: block; } #menu ul.level2 li a { display: block; float: none; border: 1px solid transparent; /* Stops the box from jittering on hover */ margin: 0.25em 0px; padding: 0.3em 0.6em; background: transparent; color: #666666; font-weight: normal; } #menu ul.level2 li a:hover { background: #f36e45 url(../images/menu-level2-bg-hover.gif) left top repeat-x; color: #ffffff; border: 1px solid #f2683d; -webkit-border-radius: 3px; -moz-border-radius: 3px; } [/sourcecode] 2 major problems. There is a large margin on the <a href="http://www.consil.co.uk/blog/2008/08/26/menu-challenges-2/" title="Read more" class="sprite-wrapper arrow-green-right">...<span class="sprite"></span></a>]]></description>
			<content:encoded><![CDATA[<p>IE6 is broken.</p>
<p>[sourcecode language="css"]</p>
<p>#menu ul.level2 li {<br />
display: block;<br />
}</p>
<p>#menu ul.level2 li a {<br />
display: block;<br />
float: none;<br />
border: 1px solid transparent; /* Stops the box from jittering on hover */<br />
margin: 0.25em 0px;<br />
padding: 0.3em 0.6em;<br />
background: transparent;<br />
color: #666666;<br />
font-weight: normal;<br />
}</p>
<p>#menu ul.level2 li a:hover {<br />
background: #f36e45 url(../images/menu-level2-bg-hover.gif) left top repeat-x;<br />
color: #ffffff;<br />
border: 1px solid #f2683d;<br />
-webkit-border-radius: 3px;<br />
-moz-border-radius: 3px;<br />
}</p>
<p>[/sourcecode]</p>
<p>2 major problems. There is a large margin on the bottom of my list items, and there is a funny dark grey border around each list item. So why these 2 bugs?</p>
<h4>Grey Border</h4>
<p>The grey border is caused by IE6&#8242;s failiure to render transparent borders. It instead falls back to the color property (which in this case is set to #666666).</p>
<p>This is the first place on my site where I need to render something differently in IE6 to other browsers. There are 2 ways of doing this:</p>
<ol>
<li>Use the famous &#8216;* html&#8217; hack. IE has a mysterious wrapper around the html tag (god only knows why!).</li>
<li>Include another stylesheet for IE6</li>
</ol>
<p>For a site of this size, the sensible option was to include a separate stylesheet for IE and below. The stylesheet should only render in IE5 and 6 because of the @import hack (hides the stylesheet from all v4 browsers):</p>
<p>[sourcecode language='html']</p>
<p><!--[if lt IE 7]&gt;--></p>
<p><!--[endif]--></p>
<p>[/sourcecode]</p>
<p>To fix the border, we set the border color to a color we&#8217;ll never use within the element or on any of it&#8217;s children &#8211; pink is usually a good bet. We then apply the Microsoft CSS filter property to that color to make it transparent.</p>
<p>[sourcecode language='css']</p>
<p>#menu ul.level2 li a {<br />
border-color: pink;<br />
filter: chroma(color = pink);<br />
}</p>
<p>[/sourcecode] </p>
]]></content:encoded>
			<wfw:commentRss>http://www.consil.co.uk/blog/2008/08/26/menu-challenges-2/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

