Jump to content

Recommended Posts

Posted

Hello everyone.....

I got one very weird issue when I wrote some HTML code by using Dreamweaver CC2018 - that 'hover' selector didn't work ,here's my code:

 

---------------------------------------------------------------------------------------------------------------------------------

<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Issue Example</title>
</head>
<style>
    .block1{
        width:50px;
        height:50px;
        background-color: aqua;
    }
    .block2
    {
        width:50px;
        height:50px;
        background-color: red;
        display: none;
    }
    .block1:hover.block2{
        display: block;
    }
    </style>
<body>
    <div class="block1"></div>
    <div class="block2"></div>
</body>
</html>

---------------------------------------------------------------------------------------------------------------------------------

This problem almost made me go beserk ....Sorrry for my poor english...Please help me, point out where is the problem here,Thanks a lot.

issue.png

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...