-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcolorGrad.html
More file actions
46 lines (39 loc) · 749 Bytes
/
colorGrad.html
File metadata and controls
46 lines (39 loc) · 749 Bytes
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
42
43
44
45
46
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Document</title>
<style>
html, body {
width: 100%;
height: 100%;
}
body {
margin: 0;
display: flex;
justify-content: center;
align-items: center;
}
#colordiv {
height: 400px;
width: 400px;
border-radius: 50px;
background-image: linear-gradient(black, transparent);
background-color: dodgerblue;
margin: 10px;
transition: background 1s linear;
}
#colordiv:hover {
background-color: red;
}
#colordiv > p{
color: white;
font-size: 3em;
text-align: center;
}
</style>
</head>
<body>
<div id="colordiv"></div>
</body>
</html>