-
Notifications
You must be signed in to change notification settings - Fork 1
/
2_2_bg_fixed_content.html
74 lines (59 loc) · 1.7 KB
/
2_2_bg_fixed_content.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
63
64
65
66
67
68
69
70
71
72
73
74
<html>
<head>
<meta charset="utf-8">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<style>
#first {
background-image: url("assets/123.png");
min-height: 800px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#second {
background-image: url("assets/123_2.png");
min-height: 400px;
background-attachment: fixed;
background-position: center;
background-repeat: no-repeat;
background-size: cover;
}
#first .row {
min-height: 300px;
background-color: rgba(0, 0, 255, 0.5);
}
#first .row div:last-child {
background-color: rgba(0, 0, 0, 0.5);
color: white;
}
#second .row {
min-height: inherit;
}
#second .row div:last-child {
min-height: inherit;
background-color: rgba(0, 0, 0, 0.5);
color: white;
}
</style>
</head>
<body>
<div id="first" class="container-fluid">
<div class="row">
<div class="col-md-6"></div>
<div class="col-md-6">
<h1>Section 1</h1>
</div>
</div>
</div>
<div id="second" class="container-fluid">
<div class="row">
<div class="col-md-6"></div>
<div class="col-md-6">
<h1>Section 2</h1>
</div>
</div>
</div>
<div style="height:1000px;background-color:black;"></div>
</body>
</html>