-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbefore _vs_after_nangcao.html
41 lines (39 loc) · 1.08 KB
/
before _vs_after_nangcao.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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Before_vs_After</title>
<style>
.before{
display: inline-block;
box-sizing: border-box;
border: 2px solid rebeccapurple;
width: 70px;height: 70px;
text-align: center;
padding: 2px;
margin: 5px;
background-color: aliceblue;
color: blue;
font-weight: 20px;
transition: all 2,1s linear;
position: relative;
z-index: 1;
}
.before:hover{
color: aliceblue;
}
.before::before{
content: " ";
width: 100%;height: 100%;
background-color: orange;
position: absolute;
left: 0; top: 0;
z-index: -1;
}
</style>
</head>
<body>
<p class="before">Nhan Vao</p>
</body>
</html>