Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

css hover change another element

#a:hover ~ #b {
    background: #ccc
}

<div id="a">Div A</div>
<div>random other elements</div>
<div>random other elements</div>
<div>random other elements</div>
<div id="b">Div B</div>
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #css #hover #change #element
ADD COMMENT
Topic
Name
4+2 =