Jump to content

【NEWBIE】Please...Can some help me with that 'css hover selector' issue ?


DimitriDeChef

Recommended Posts

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

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...