-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcssposition 7.html
26 lines (24 loc) · 1.08 KB
/
cssposition 7.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>css position 7</title>
<style>
div{border: solid black;background-color: yellow;width: 20%;}
.box1{position: relative;margin-left: 70px;z-index: 11;}
.box2{position: relative;margin-top: -190px;margin-left: 50px;z-index: 9;}
.box3{position: relative;margin-top: -150px;margin-left: 30px;z-index: 2;}
.box2:hover{z-index: 11;}
.box3:hover{z-index: 11;}
</style>
</head>
<body>
<div class="box1"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSKro6Jte3W82KcpOhEEBrDIK3iVZd_tFFlzA&usqp=CAU" alt="img 1" class="ii">
</div>
<div class="box2"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSRoLrYaVcKBtAGPx_I_txbv_G1hii_J-7Hrg&usqp=CAU" alt="img2" class="ii">
</div>
<div class="box3"><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSqWjNk2hnGgE4VFyxdcqmIIdu0wKtr1ADqGQ&usqp=CAU" alt="img 3" class="ii">
</div>
</body>
</html>