Roll-over

Use this CSS:

  /* CSS rollover: http://wellstyled.com/css-nopreload-rollovers.html */
  A#gerol {
    display: block;
    width: 130px;
    height: 320px;
    background: url('img/automat_gerolX.png') top left no-repeat;
  }
 
  A#gerol:hover {
    background-position: -130px 0;
  }
 
  A#gerol IMG {
    display: none;
  }

and add images like this:

<!-- This way, the IMG is visible, when user disables CSS parsing -->
<a href="#" id="gerol" title="GEROLSTEINER K&uuml;hlsystem"><img src="img/automat_gerol2.png" alt="" title="GEROLSTEINER K&uuml;hlsystem" /></a>

 
snippets/css/rollover.txt · Last modified: 2008-07-15 22:30.27 by mbirth
 
Except where otherwise noted, content on this wiki is licensed under the following license:CC Attribution-Noncommercial-Share Alike 3.0 Unported
Recent changes RSS feed Donate Powered by PHP Valid XHTML 1.0 Valid CSS Driven by DokuWiki Contents powered by Club-Mate Contents powered by BassDrive.com Labelled with ICRA