Forums

The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS mouse hover in image

  • This topic is empty.
Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #40268
    vickygupta
    Member

    Hello Guys i am facing a problem in my page i want to add a fb logo that should be in black and white and when i mouse hover it it will show me a color one . please suggest me in which way i can do this ?

    #111778
    Paulie_D
    Member

    The simplest way is to use two background images and swap them out on hover.

    There is the new ‘filter’ option but is has very limited browser support.

    #111779
    Kitty Giraudel
    Participant

    1. Create a .jpg or .png file with the 2 versions of your image side by side.
    2. Place it as a background image on the element you want to hover.
    3. When hovered, change the background-position property to show the correct version.

    #111851
    vickygupta
    Member

    Sorry Didn’t got u Mr
    HugoGiraudel can i have the code please please ?

    #111855
    Paulie_D
    Member

    Try google for css and sprites

    #111884
    i3a1l3y
    Member

    This is a easy enough guide:

    [http://www.noobcube.com/tutorials/html-css/css-background-image-sprites-a-beginners-guide-/](http://www.noobcube.com/tutorials/html-css/css-background-image-sprites-a-beginners-guide-/ “”)

    Also has an advanced tutorial, if you fancy that.

Viewing 6 posts - 1 through 6 (of 6 total)
  • The forum ‘CSS’ is closed to new topics and replies.