• Ive tried several codes and none work on any of the sites i create, is there 2 ends to the codes i have to input —– one in the css and the other in the html/php?

Viewing 1 replies (of 1 total)
  • here is a tutorial that includes CSS hover states. You use two sets of styling
    https://www.tizag.com/cssT/pclass.php

    example:

    a { background: url(images/image.jpg) no-repeat; }
    a:hover { background: url(images/image_rollover.jpg) no-repeat; }

    If you are doing it in CSS you don’t need to change the HTML/PHP at all.

    if you are applying it to an A tag, you may need to use
    display: block
    and assign a height and width to the A tag that matches the background image size.

Viewing 1 replies (of 1 total)
  • The topic ‘rollover images’ is closed to new replies.