DarkxPunk Posted May 10, 2016 Share Posted May 10, 2016 Hey there, Let me preface that apparently this is impossible, but maybe someone will have an alternative. Here is a small incomplete snippet of code, don't worry you really don't need it all. <article id="services"> <div class="imageSwitcher"> <span class="imageSwitcherBox livingroom"> </span> <span class="imageSwitcherBox livingroom"> </span> </div> <div class="background doors2"> </div> Basically what I need to do is when I hover over the imageSwitcherBox it will change the background of the class background... Now I can't take the imageSwitcherBox s out of the imageSwitcher because I need that for positioning... What can I do to achieve my goals? If you need more code let me know... Thanks! Link to comment Share on other sites More sharing options...
musicman Posted May 10, 2016 Share Posted May 10, 2016 (edited) We can do that with Javascript.. have no idea with pure CSS. Edited May 10, 2016 by musicman Link to comment Share on other sites More sharing options...
dsonesuk Posted May 10, 2016 Share Posted May 10, 2016 What if do it the other way round and place background element with imageswitcherboxs but then force it out of area of container imageswitcher boundary. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now