Grow your CSS skills. Land your dream job.

Link problem in IE6

  • # April 29, 2009 at 5:14 pm

    Hi, I’m having a hard time with ie6 lately on a particular problem, here’s the bit of html I’m on :

    Code:

    Everything is fine with firefox etc, but the link won’t work by clicking directly on the image on IE6 (but will do work anywhere else on the <a>).

    Someone has an idea ?

    Thanks !

    edit : This does not work on IE7 either

    # April 29, 2009 at 6:50 pm

    Is that your exact code?

    You don’t have anything in the href="" which will stop it from being clickable.

    # April 30, 2009 at 3:19 am

    Sorry I should have mentioned this is just a demo, I have a real link on my html page.

    Here is a link of a demo page:
    http://www.daniel-rico.com/demos/ie/

    # April 30, 2009 at 11:46 am

    That’s wack man. As I’m sure you noticed, in IE6, the <a> is still clickable; but the span and img are not. if you remove the span, is the image clickable?

    # May 2, 2009 at 7:20 pm

    Start by adding a doctype to your page. IE6 is stupid and will go wonky and behave funny without proper instructions. http://www.alistapart.com/articles/doctype/

    Next, I agree with Ashton… remove the span.

    If you can’t do that, try adding display:inline to the image.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".