-
Notifications
You must be signed in to change notification settings - Fork 0
/
gradient background.html
51 lines (40 loc) · 1.71 KB
/
gradient background.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
42
43
44
45
46
47
48
49
50
51
<html>
<head>
<title>gradient background</title>
<style>
div {
height: 200px;
width: 300px;
float: left;
border: 1px solid blue;
margin: 10px;
padding: 10px;
position: relative;
}
.p1 {
background-image: linear-gradient(rgb(138, 175, 239),rgb(214, 151, 246),rgb(235, 115, 177));
}
.p2 {
background-image: linear-gradient(to right, rgb(138, 175, 239),rgb(214, 151, 246),rgb(235, 115, 177));
}
.p3 {
background-image: linear-gradient(to bottom, rgb(138, 175, 239),rgb(214, 151, 246),rgb(235, 115, 177));
}
.p4 {background-image: linear-gradient(-30deg,rgb(138, 175, 239),rgb(214, 151, 246),rgb(235, 115, 177));}
.p5 {background-image: linear-gradient(rgb(138, 175, 239) 10%,rgb(214, 151, 246) 40%,rgb(235, 115, 177) 50%);}
.p6 {background-image: linear-gradient(rgb(138, 175, 239) 10%,rgb(214, 151, 246) 40%,rgb(235, 115, 177));}
.p7 {background-image: linear-gradient(rgb(138, 175, 239) 10%,rgb(214, 151, 246) 20%,rgb(235, 115, 177) 20%);}
.p8 {background-image:repeating-linear-gradient(rgb(138, 175, 239) 10%,rgb(214, 151, 246) 20%,rgb(235, 115, 177) 20%);}
</style>
</head>
<body>
<div class="p1">Linear gradient-1</div>
<div class="p2">Linear gradient-1</div>
<div class="p3">Linear gradient-1</div>
<div class="p4">Linear gradient-1</div>
<div class="p5">Linear gradient-1</div>
<div class="p6">Linear gradient-1</div>
<div class="p7">Linear gradient-1</div>
<div class="p8">Linear gradient-1</div>
</body>
</html>