-
Notifications
You must be signed in to change notification settings - Fork 10
/
cssbackground.html
62 lines (61 loc) · 1.12 KB
/
cssbackground.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
52
53
54
55
56
57
58
59
60
61
62
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
<style>
.main{
background:#F00;
width:45%;
height:160px;
opacity:0.5;
}
.head{
background:#FF0;
width:100%;
height:50px;
}
.head h1{
margin:0;
margin-left:40px;
line-height:50px;
}
.main2{
background:rgba(55,520,55,0.5);
width:45%;
height:160px;
margin-top:20px;
}
.head2{
width:100%;
height:50px;
background:#F0F;
}
.head2 h1{
margin:0px;
line-height:50px;
margin-left:40px;
}
.main3{
background:linear-gradient(to left,rgba(0,355,0,0.8),rgba(0,255,0,0.5),rgba(0,155,0,0.3),rgba(0,55,0,0.0));
width:45%;
height:160px;
margin-top:10px;
}
</style>
</head>
<body>
<div class="main">
<div class="head">
<h1>Heading</h1>
</div>
</div>
<div class="main2"
<div class="head2">
<h1>Heading 2</h1>
</div>
</div>
<div class="main3">
</div>
</body>
</html>