Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSS

How to affect other elements when one element is hovered

div {
  outline: 1px solid red;
}

#container {
  width: 200px;
  height: 30px;
}

#cube {
  width: 30px;
  height: 100%;
  background-color: red;
}

#cube:hover {
  width: 30px;
  height: 100%;
  background-color: blue;
}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #How #affect #elements #element #hovered
ADD COMMENT
Topic
Name
8+2 =