shepherdweb.com

Pure CSS Image Rollover

February 4th, 2006

Christian Montoya posted a demo/tuturial describing his method of image rollovers…without using javascript. I like it! Check out my lab from November 2005 for a similar take on the same subject.

2 Comments »

  1. Trixie wrote,

    A nice method:

    <style>
    img.nohover {border:0}
    img.hover {border:0;display:none}
    A:hover img.hover {display:inline}
    A:hover img.nohover {display:none}
    </style>
    <A HREF=”#”>
    <img src=”b1.gif” class=”nohover”>
    <img src=”b2.gif” class=”hover”>
    </A>

    Comment on November 28, 2008 @ 5:23 am

  2. Shane wrote,

    @Trixie - Do you have a demo of this published somewhere?

    Comment on November 28, 2008 @ 10:31 am

Leave a comment

RSS feed for comments on this post.

TrackBack URI

Bad Behavior has blocked 652 access attempts in the last 7 days.