1. This website uses cookies. By continuing to use this website you are giving consent to cookies being used.
    For information on cookies and how you can disable them visit our Cookie Usage page.
    Dismiss Notice

CSS quick question

Discussion in 'Web Development' started by Lpspider, Aug 24, 2005.

  1. Lpspider

    Lpspider New Member

    Is there anytype of onmouseover call for CSS? If I want two images to flip, would I have to use javascript?
     
  2. Mimoun

    Mimoun Administrator Staff Member Director Verified Member

    With CSS you can only change 1 tag at a time and only the tag that is activating the mouseover.
    Like this:
    Code:
    .mydiv:hover{background-image:url(newimage.gif);}
    
    When using Internet Explorer this will only work for links so you can only use it on A tags not on divs or any other tag.

    When you want to change 2 images at the same time you will always have to use Javascript.