Treehouse: Grow your CSS skills. Land your dream job.

Click on a Link changes an Image?

  • # March 19, 2010 at 1:03 pm

    Hi there,

    I am trying to excute a project that will allow me to click on a link and it will swap the image out.

    I uploaded a file that will give you a better idea with what I am doing.

    please advise.


    # March 19, 2010 at 1:42 pm

    You can either achieve this with z-index, or with javascript.

    # March 19, 2010 at 1:52 pm

    Hi, if all the images are the same height then you could do it with pure css like this… … t-swap.php

    # March 19, 2010 at 2:06 pm

    all of the image will be the same size.

    i’ll look into your method.

    any other ideas you might have?

    # March 20, 2010 at 5:47 am

    Take a look at this one, works on images and on text links … e-gallery/

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

You must be logged in to reply to this topic.