<?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>Abstract Sequential &#187; bug</title>
	<atom:link href="http://stephaniehobson.ca/wordpress/tag/bug/feed/" rel="self" type="application/rss+xml" />
	<link>http://stephaniehobson.ca/wordpress</link>
	<description>You make it pretty - I make it work.</description>
	<lastBuildDate>Thu, 03 Jun 2010 18:23:18 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>CSS bug in IE 6 with: .class a:hover element</title>
		<link>http://stephaniehobson.ca/wordpress/2007/12/19/css-bug-in-ie-6-with-class-ahover-element/</link>
		<comments>http://stephaniehobson.ca/wordpress/2007/12/19/css-bug-in-ie-6-with-class-ahover-element/#comments</comments>
		<pubDate>Wed, 19 Dec 2007 22:49:05 +0000</pubDate>
		<dc:creator>Stephanie</dc:creator>
				<category><![CDATA[webdesign]]></category>
		<category><![CDATA[bug]]></category>
		<category><![CDATA[code]]></category>
		<category><![CDATA[css]]></category>
		<category><![CDATA[ie]]></category>

		<guid isPermaLink="false">http://stephaniehobson.ca/2007/12/19/css-bug-in-ie-6-with-class-ahover-element/</guid>
		<description><![CDATA[This bug seems to apply to styling elements under a class or id within a link on hover.  Stuff like .class a:hover [...]]]></description>
			<content:encoded><![CDATA[<p>This bug seems to apply to styling elements under a class or id within a link on hover.  Stuff like <code>.class a:hover span{}</code> or <code>#id a:hover strong{}</code>.  The solution is to define a property on the parent link <code>.class a:hover{}</code> that hasn&#8217;t been declared anywhere else in your CSS, like a text indent of 0 or something.</p>
<p>All the work for the solution was done by <a href="http://www.tanfa.co.uk/css/articles/pure-css-popups-bug.asp">Tanfa, who wrote an article on IE Pure CSS Pop Ups Bug</a>, I just thought it was worth mentioning that this bug can be generalized to more than the CSS menus.</p>
<p>Here&#8217;s what happened to me:</p>
<p>I had some text inside a link, and I wanted some of it to do one thing when rolled over and some of it to do something else.  I marked it up like this:</p>
<p><code>&lt;div class="promo"&gt;<br />
&lt;h3&gt;News&lt;/h3&gt;<br />
&lt;a href="link.html"&gt;IE has lots of bugs &lt;strong&gt;read more&lt;/strong&gt;.&lt;/a&gt;<br />
&lt;/div&gt;</code></p>
<p>It&#8217;s sort of a solution to the fact that &#8220;read more&#8221; makes bad link text.  Bad.  And I don&#8217;t write the copy.</p>
<p>Then I tried to style it with something like this:</p>
<p><code>/*default link behaviour*/<br />
a{<br />
text-decoration:none;<br />
color:#8ec3e2;<br />
}<br />
a:visited{<br />
color:#6d80a8;<br />
}<br />
a:hover{<br />
color:#c1fcff;<br />
}<br />
</code><br />
<code><br />
/* overrides for this element */<br />
.promo a{<br />
color:#000;<br />
}<br />
.promo a:hover{<br />
color:#000;<br />
}<br />
.promo a strong,<br />
.promo a:visited strong{<br />
color:#8ec3e2;<br />
display:block;<br />
}<br />
.promo a:hover strong{<br />
color:#c1fcff;<br />
}</code></p>
<p>Which did exactly what I wanted it to do&#8230; in FireFox but in IE 6 the hover was not displaying properly.  After a little tinkering the IE bug alarm bells started going off in the back of my head and Google provided <a href="http://www.tanfa.co.uk/css/articles/pure-css-popups-bug.asp">Tanfa&#8217;s article on IE Pure CSS Pop Ups Bug</a> in response to my query.</p>
<p>I added float:none to my declaration for <code>.promo a:hover{}</code> and all is now well :)</p>
<p><code>.promo a:hover{<br />
color:#000;<br />
}</code></p>
<p>Thank you Tanfa!</p>
]]></content:encoded>
			<wfw:commentRss>http://stephaniehobson.ca/wordpress/2007/12/19/css-bug-in-ie-6-with-class-ahover-element/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
