You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
321 B
HTML
23 lines
321 B
HTML
7 months ago
|
<!DOCTYPE html>
|
||
|
<html>
|
||
|
<head>
|
||
|
<style>
|
||
|
.hide {
|
||
|
display: none;
|
||
|
}
|
||
|
|
||
|
.myDIV:hover + .hide {
|
||
|
display: block;
|
||
|
color: red;
|
||
|
}
|
||
|
</style>
|
||
|
</head>
|
||
|
<body>
|
||
|
|
||
|
<h2>Display an Element on Hover</h2>
|
||
|
|
||
|
<div class="myDIV">Hover over me.</div>
|
||
|
<div class="hide">I am shown when someone hovers over the div above.</div>
|
||
|
|
||
|
</body>
|
||
|
</html>
|