Created
March 12, 2014 14:20
-
-
Save juanres/9507907 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
If the cube is directly inside the container: | |
#container:hover > #cube { background-color: yellow; } | |
If cube is next to (after containers closing tag) the container: | |
#container:hover + #cube { background-color: yellow; } | |
If the cube is somewhere inside the container: | |
#container:hover #cube { background-color: yellow; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment