//cube is directly inside the container:
#container:hover > #cube { background-color: yellow; }
//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; }
//If the cube is a sibling of the container:
#container:hover ~ #cube { background-color: yellow; }
Code Example |
---|
Css :: css animate background color change |
Css :: image right css |
Css :: centos 8 cron on reboot |
Css :: css not last child |
Css :: dom ids have numbers |
Css :: css inline text color |
Css :: how center div in css |
Css :: scroll x css |
Css :: how to add image with url in css |
Css :: css grid auto wrap |
Css :: text properties css |
Css :: div class sr-only |
Css :: background size in css |
Css :: how to add space between image and text in css |
Css :: text decoration underline not removing |
Css :: css show scrollbar if overflow |
Css :: css background linear gradient transparent |
Css :: removing input border shadow |
Css :: hover show scrollbar css |
Css :: css grid no stretch |
Css :: how to put image in button css |
Css :: css horizontal scroll cards |
Css :: how to x axis scroll css |
Css :: textarea disable resize |
Css :: css text align right |
Css :: edit css jquery |
Css :: css circle with number |
Css :: Align vertically and horizontally |
Css :: gradient text colors |
Css :: image responsive css |