1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
| .container1{
display: inline-block;
height: 100px;
width: 150px;
background-color: red;
vertical-align: top;
line-height: 20px;
text-align: right;
font-weight: 900;
color: #F0F8FF;
text-shadow: 1px 1px black;
padding: 2px 5px;
overflow: auto;
box-shadow: 2px 2px 1px 1px rgba(0, 0, 0, 0.2);
cursor: pointer;
}
.container3{
display: none;
margin-left: 210px;
background-color: orange;
height: 100px;
width: 200px;
margin: 0;
}
.container1:hover .container3{
display: block;} |
Partager