-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathexemples_positionnement.html
93 lines (86 loc) · 1.81 KB
/
exemples_positionnement.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
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Test Paparazzimg</title>
<style>
html, body{
width: 100%;
height: 100%;
margin: 0;
padding; 0;
}
.location{
margin-top: 100px;
position: relative;
z-index: 5;
}
.wrapper{
width: 60%;
margin: 0 auto;
}
.container{
margin-left: 20%;
background: #ededed;
padding: 50px 0;
}
.container:before{
content: "";
display: block;
position: absolute;
top: 0;
bottom: 0;
left: 50%;
right: 0;
z-index: -1;
background: #ededed;
}
.container:after{
content: "";
display: block;
position: absolute;
top: 0;
bottom: 0;
width: 700px;
left: 50%;
background: #999999;
}
.inner{
position: relative;
z-index: 5;
}
.lol{
margin-top: 100px;
overflow: hidden;
}
.lol .container{
background: transparent;
position: relative;
}
.lol .container:before{
left: 0;
right: -99999%;
}
</style>
</head>
<body>
<div class="location">
<div class="wrapper">
<div class="container">
<div class="inner">
<h1>Un super titre</h1>
<p>Mon super contenu</p>
</div>
</div>
</div>
</div>
<div class="lol">
<div class="wrapper">
<div class="container">
<h1>Un super titre</h1>
<p>Mon super contenu</p>
</div>
</div>
</div>
</body>
</html>