#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>
.showme {
display: none;
}
.showhim:hover .showme {
display: block;
}
<div class="showhim">HOVER ME
<div class="showme">hai</div>
</div>
#a:hover + #b {
background: #ccc
}
<div id="a">Div A</div>
<div id="b">Div B</div>
#a:hover + #b {
background: #ccc
}
<div id="a">Div A</div>
<div id="b">Div B</div>
.hover {
background-color: blue;
padding: 8px;
}
.move {
background-color: red;
padding: 8px;
transition: 0.5s;
}
.hover:hover ~ .move {
margin-top: 48px;
}
Code Example |
---|
Css :: absolute positioning css |
Css :: adding quotes css |
Css :: flex box css |
Css :: button hover |
Css :: css width percentage |
Css :: make css variable negative |
Css :: registration form in tailwind css |
Css :: image transparent |
Css :: css animation |
Css :: css color codes |
Css :: form css design |
Css :: take out side bar in css |
Css :: CSS transition slide down |
Css :: como hacer que me queden los nombres dentro de un formulario css |
Css :: css good line height |
Css :: font weight numbers |
Css :: css icon |
Css :: devextreme css |
Css :: Text Shadow Hover Effect |
Css :: how to style links in css |
Css :: css flex |
Css :: error 404 flask on css file |
Css :: CSS Table Alignment |
Css :: chrome extension css |
Css :: css custom underline color |
Css :: blurring behind a div |
Css :: css nested class |
Css :: box shadow css transition |
Css :: save css file to different folder in scss |
Css :: html css text color invert on image |