hover child, color parent

/* CSS LIKE THIS */ div.parent { pointer-events: none; } div.child { pointer-events: auto; } div.parent:hover { background: yellow; } /* HTML LIKE THIS */ /* <div class="parent"> parent - you can hover over here and it won't trigger <div class="child">hover over the child instead!</div> </div> */
How to add some style to Parents element, when a child y HOVER

Be the first to comment

You can use [html][/html], [css][/css], [php][/php] and more to embed the code. Urls are automatically hyperlinked. Line breaks and paragraphs are automatically generated.