-
Notifications
You must be signed in to change notification settings - Fork 1
/
grid1.html
executable file
·127 lines (101 loc) · 1.73 KB
/
grid1.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
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
<!doctype html>
<html class="no-js" lang="">
<head>
<meta charset="utf-8">
<title>Carousel Layout</title>
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="css/normalize.min.css">
<link rel="stylesheet" href="css/main.css">
<style>
body {
background: ivory;
font-family: "Avenir Next", sans-serif;
}
.cadre {
padding: 2vmin;
height: 100vh;
}
section {
font-size: 10vmin;
background: silver;
display: flex;
justify-content: center;
}
section p {
margin: auto;
}
/* Définition de la Grille CSS */
.cadre {
display: grid;
grid-template-columns: repeat(5, 1fr);
grid-gap: 2vmin;
}
/* Placement des objets */
#a{
grid-column-start: 4;
grid-column-end: 6;
grid-row-start: 2;
grid-row-end: 3;
}
#b {
grid-column-start: 3;
grid-column-end: 4;
grid-row-start: 3;
grid-row-end: 4;
}
#c {
grid-column-start: 1;
grid-column-end: 3;
grid-row-start: 2;
grid-row-end: 3;
}
#d {
grid-column-start: 5;
grid-column-end: 6;
}
#e {
}
#f {
grid-column-start: 1;
grid-column-end: 4;
grid-row-start: 1;
grid-row-end: 2;
}
</style>
</head>
<body>
<main class="cadre">
<section id="a">
<p>
A
</p>
</section>
<section id="b">
<p>
B
</p>
</section>
<section id="c">
<p>
C
</p>
</section>
<section id="d">
<p>
D
</p>
</section>
<section id="e">
<p>
E
</p>
</section>
<section id="f">
<p>
F
</p>
</section>
</main>
</body>
</html>