views:

33

answers:

5

Problem solved, thanks everybody

Here's the problem

I have something like this

 <a href='http://google.com' class="buy_now" > 
<div class='yada yada' > Go </div> 
</a>

buy_now has background-color on :hover

In chrome it works In firefox, while hovering, it keeps flashing / blinking etc

Is there anything wrong with my code or this is a firefox bug

Here's the live demo: http://duskblue.org/firefox_bug.html

Edit: ok, seems to be a transitory problem here, works fine after restarting firefox. :/ (3.5.9) here.

Edit 2: demo is now valid HTML according to validator.w3.org

A: 

Looks fine to me. (FF 3.6.3)

What version of firefox are you using?

washwithcare
A: 

Might there be a firefox plugin you've installed that's interfering with your code?

I can't reproduce the error you're reporting in any browser, using the provided link.

David Hedlund
A: 

Works fine here (Firefox 3.5.9).

Bear in mind that this isn't valid HTML/XHTML, all bets are off.

Your best be would be to make sure that the <div> as exactly the same height/width as the surrounding <a>.

jeanreis
Yes, it's true, this has been cut-paste from production code for example purposes so a lot of things are offI'll try making the div the same size as the a
thiagogalesi
A: 

worked for me. better u look your development environment .

Ankit Jain
A: 

when debugging stuff like this I always like to have valid html - which is this isn't

matpol