AlternativeWeb
Active Member
Why does this work, but when I add #container it no longer works?
Works just fine:
No longer working due to #container
What am I doing wrong?
Works just fine:
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
stage2
{
display:none;
color:black;
width:100px;
height:100px;
background:white;
animation:myfirst 9s;
-moz-animation:myfirst 9s; /* Firefox */
-webkit-animation:myfirst 5s; /* Safari and Chrome */
}
.stage2:hover + stage2{
display:inline;
}
</style>
</head>
<body>
<a class="stage2" href="#">Hover over me!</a>
<stage2>this is the content for stage2</stage2>
</body>
</html>
PHP:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<style type="text/css">
stage2
{
display:none;
color:black;
width:100px;
height:100px;
background:white;
animation:myfirst 9s;
-moz-animation:myfirst 9s; /* Firefox */
-webkit-animation:myfirst 5s; /* Safari and Chrome */
}
#container .stage2:hover + stage2{
display:inline;
}
</style>
</head>
<body>
<div id="container">
<a class="stage2" href="#">Hover over me!</a>
</div>
<stage2>this is the content for stage2</stage2>
</body>
</html>
Last edited: