-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
118 lines (115 loc) · 5.45 KB
/
index.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Bootstrap exercices</title>
<script src='./js/scripts.js'></script>
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/css/bootstrap.min.css" integrity="sha384-Gn5384xqQ1aoWXA+058RXPxPg6fy4IWvTNh0E263XmFcJlSAwiGgFAW/dAiS6JXm" crossorigin="anonymous">
<link rel="stylesheet" href="./css/style.css">
</head>
<body>
<h1>Bootstrap - Exercices d'utilisation de la grille</h1>
</br>
</br>
<h3>Exercice 1 : positionnement des blocs</h3>
<div class='container bg-info text-center bord'>
<div class="row">
<div class="col-lg-12"><p>12 colonnes</p></div>
</div>
<div class="row">
<div class="col-lg-2 bg-primary offset-lg-1 text-center bord"><p>Coucou</p></div>
<div class="col-lg-3 bg-danger offset-lg-2 text-center bord"><p>ça</p></div>
<div class="col-lg-2 bg-success offset-lg-2 text-center bord"><p>va ?</p></div>
</div>
</div>
</br>
</br>
<h3>Exercice 2 : éléments imbriqués</h3>
<div class="container text-center">
<div class="row justify-content-start">
<div class="col-lg-4 text-center bord h-25 bg-info"><p>Nouvel</p></div>
<div class="col-lg-8 text-center bord bg-info">
<p><b>Exercice</b></p>
<div class="row">
<div class="col-lg-3 text-center bord"><p>ces</p></div>
<div class="col-lg-6 text-center bord"><p>blocs sont tous</p></div>
<div class="col-lg-3 text-center bord"><p>dans</p></div>
</div>
<div class="row">
<div class="col-lg-4 text-center bord"><p>la même</p></div>
<div class="col-lg-4 text-center bord"><p>div où est</p></div>
<div class="col-lg-4 text-center bord"><p>inscrit <b>"Exercice"</b>.</p></div>
</div>
<div class="row">
<div class="col-lg-5 text-center bord"><p>comment</p></div>
<div class="col-lg-2 text-center bord"><p>est</p></div>
<div class="col-lg-5 text-center bord"><p>ce possible ?</p></div>
</div>
</div>
</div>
</div>
</br>
</br>
<h3>Exercice 3 : changer l'ordre des éléments</h3>
<div class='container bg-info text-center bord'>
<div class="row">
<div class="col-lg-12"><p>12 colonnes</p></div>
</div>
<div class="row">
<div class="col-lg-2 bg-primary offset-lg-1 text-center order-first bord"><p>Bloc 1 de 2</p></div>
<div class="col-lg-2 bg-danger offset-lg-2 text-center order-last bord"><p>Bloc 2 de 2</p></div>
<div class="col-lg-2 bg-success offset-lg-2 text-center bord"><p>Bloc 3 de 2</p></div>
</div>
</div>
</br>
</br>
<h3>Exercice 4 : un avant-dernier pour la route</h3>
<div class="container text-center">
<div class="row">
<div class="col-lg-6 bg-info bord">
<p>6 colonnes</p>
<div class="row">
<div class="col-lg-4 bg-warning bord"><p>4 colonnes</p></div>
<div class="col-lg-4 bg-danger offset-lg-4 bord"><p>4 colonnes</p></div>
</div>
</div>
<div class="col-lg-6 bg-info bord">
<p>6 colonnes</p>
<div class="row">
<div class="col-lg-4 bg-primary bord"><p>4 colonnes</p></div>
<div class="col-lg-8 bg-success bord"><p>8 colonnes</p></div>
</div>
</div>
</div>
</div>
</br>
</br>
<h3>Exercice 5 : réalise un layout responsive</h3>
<div class="container text-center">
<div class="row">
<div class="col-4 col-lg-3 my-2 bg-warning bord"><p>Logo</p></div>
<div class="col-8 col-lg-9 my-2 bg-primary bord"><p>Logo</p></div>
</div>
<div class="row">
<div class="col-12 my-2 bg-success bord"><p>Hero</p></div>
</div>
<div class="row">
<div class="col-12 col-lg-4 my-2 bg-danger bord"><p>Zone 1</p></div>
<div class="col-12 col-lg-4 my-2 bg-danger bord"><p>Zone 2</p></div>
<div class="col-12 col-lg-4 my-2 bg-danger bord"><p>Zone 3</p></div>
</div>
<div class="row">
<div class="col-8 col-lg-6 my-2 bg-primary bord"><p>Zone 5</p></div>
<div class="col-4 col-lg-6 my-2 bg-warning bord"><p>Zone 6</p></div>
</div>
<footer class="row">
<div class="col-12 my-2 bg-success bord"><p>Footer</p></div>
</footer>
</div>
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js" integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo" crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js" integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1" crossorigin="anonymous"></script>
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0/js/bootstrap.min.js" integrity="sha384-JZR6Spejh4U02d8jOt6vLEHfe/JQGiRRSQQxSfFWpi1MquVdAyjUar5+76PVCmYl" crossorigin="anonymous"></script>
</body>
</html>