Bonjour, j'aimerai que ces 3 div aient tous la meme hauteur qui serai celle du plus grand des 3.
J'ai fais un tas d'essais (margin, height, overflow...... avec pour valeur auto, 100%......) mais rien n'y a fait.
Chacun d'eux occupe uniquement la hauteur dont il a besoin, alors que j'aimerai qu'il se prolonge jusqu'au "footer".
Code de la page:
Code xhtml : 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 <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.DTD"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <link rel="icon" type="image/png" href="images/site/favicon.png" /> <title> Titre </title> <link type="text/css" rel="stylesheet" media="all" href="StyleSheet.css"/> <div id="header"> <a href="index.php"><img alt="Diodio13fr" src="images/site/header.jpg" style="float: left"/></a> </div> </head> <body> <div id="page"> <div id="leftsidebar"> <!-- taille du contenu variable --> </div> <div id="content"> <!-- taille du contenu variable --> </div> <div id="rightsidebar"> <!-- taille du contenu variable --> </div> <div id="footer"> <!-- taille fixe --> </div> </div> </body> </html>
Le CSS appliqué à la page
Code css : 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
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68 body { background-color: #444444; color: #000000; font-family: monospace, Arial, Helvetica, Sans-serif; font-size: 14px; text-align: center; } #header { color: #000099; width: 1280px; height: 200px; padding: 0 0 20px 0; color: #000099; text-align: left; margin: auto; } #page { background-color: #ffffff; color: #000000; margin: auto; width: 1280px; border: 1px solid black; overflow: hidden; display: inline-block; } #leftsidebar { background-color: #00ff00; color: #000000; float: left; width: 226px; text-align: left; margin-bottom: auto; display: inline-block; } #content { background-color: #0000ff; color: #000000; width: 818px; float: left; padding: 0 5px; margin-bottom: auto; overflow: hidden; } #rightsidebar { background-color: #ff0000; float: left; width: 226px; text-align: center; margin-bottom: auto; overflow: hidden; } #footer { background-color: #666666; font-size: 1.1em; position: relative; float: right; width: 1280px; height: auto; text-align: center; }
N'ayez pas peur pour les couleurs fantaisistes des mes div, elle sont la uniquement pour mieux voir chacun d'un, en définitif ça sera bien plus sobre.
Merci de votre aide .
Partager