Bonjour, je fais un exercice sur les blocs et je dois faire des blocs imbriquées. J'ai reussi a faire les blocs mais pours les blocs qui doivent se trouver a l'intérieur d'un bloc par exemple , je n'arrive pas a les faire comme par exple ça
code css
Code : Sélectionner tout - Visualiser dans une fenêtre à part
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 { padding: 0px; margin: 0px; } body{ background-color: silver; } header{ text-align: center; width: 80%; background-color: white; margin: 5px auto 0px; font-size: 2em; font-weight: bold; } nav{ width:78%; margin: auto; padding-left: 2%; background-color: black; font-family: 1.3em; font-weight: bold; color: white; } #contenu{ width: 80%; height: 360px; border: 3px dashed white; margin: auto; } footer{ width:78%; margin: auto; padding-right: 2%; text-align: right; background-color: white; font-family: 1.3em; font-weight: bold; }
code html
Code html : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 <body> <header class='font-blanc'> Test ISN du 14 aout </header> <nav> NOM et PRENOM </nav> <div id="contenu"> </div> <footer> Lycee Polyvalent Ella Fitzgerald </footer> </body>
Partager