Forums

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

Home Forums CSS Help with rollover background image

  • This topic is empty.
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #32284
    cfair22
    Participant

    Here’s the Idea: i have one div with 2 nested divs inside. what i want to happen is when the mouse goes over any part of the main div there will be a highlighted effect(that i created). so no matter where inside the 2 smaller divs or the one main div the mouse went, that highlight effect would appear around the whole thing.

    Problem: i can’t seem to href through other divs. so i could have a rollover in the smaller divs but not over everything inside the larger div.

    *hope i explained this correctly* i can provide code if i need, but i figured it was general enough

    thanks

    #51743
    mwarren
    Member

    without code, this seems easiest with jquery:

    $('#childdiv, #childdiv2').hover(function(){
    $('#maindiv').addClass('hover');
    },
    function(){
    $('#maindiv').removeClass('hover');
    });
Viewing 2 posts - 1 through 2 (of 2 total)
  • The forum ‘CSS’ is closed to new topics and replies.