Jump to content

Target Child of Parent with Pure CSS


DarkxPunk

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...