Bonjour ,

Grâce à tous les conseils que j'ai pu glaner ici et là sur le site.Je suis sur le point de finaliser mon site.

J'ai un problème concernant la mise en page :

Tout d'abord pour vous présenter ma page : elle est divisée en quatre :
un en-tête , un menu , un pied de page et le contenu.

Pour l'en-tête et le menu pour l'instant ça va .
Par contre le contenu et le pied de page me causent des soucis.

Pour le contenu lorsque j'ai assez d'éléments à afficher ça va mon contenu prend toute la page et le pied de page s'affiche bien en bas de page.

Par contre lorsque j'ai moins de contenu à afficher,mon pied de page s'affiche au milieu de la page alors que j'aimerai que quelque soit la quantité de données à afficher mon pied de page soit en bas de page.
En faisant des recherches sur google, la question revient souvent mais auune des solutions que je trouve ne résoud mon problème.

voici mon fichier index.php où je définis mes divers blocs :
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
45
46
 
<div id="bloc">
 
        <div id="header">  
 
           <?php include("en_tete/header.php"); ?>
 
         </div>              
 
         <div id="menuPrincipal" > 
 
 
 
              <?php include("en_tete/menu_visiteur.php"); ?>
 
         </div>
 
 
 
 
                <div id="contenu">
 
                          Je suis le contenu
              <?php if (isset($_GET["page"]))
                  {
                  $page=$_GET["page"];include("$page.php");
                  }
                  else
                  {
                  echo "La page n'a pas été chargé";
                      include("accueil1") ;
                  }
                  ?>
 
 
 
         </div>       
 
 
                    <div id="footer">
               <?php
               include ("en_tete/footer.php"); ?>
 
               </div>
 
                </div>
voici mon fichier design.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
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
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
 
html, body {
    height: 100%;
}
 
#bloc
{
border-style : solid ;
border-width : 1 px ;
border-color : red ;
width : 100% ;
height : 100% ;
}
 
#header
{
    position : absolute ;
    width : 100% ;
    height : 15% ;
    margin-top : 0px ;
     margin-left : 0px ;
      margin-bottom : 0px ; 
      margin-right : 0px ;
 
 
    border-width : 1 px ;
    border-style : solid ;
    font-size : 12 px ;
    text-align : center ;
}
#menuPrincipal
{
    position : absolute ;
    top : 20% ;
    width : 20% ;
 
    heigth : 80% ;
     border-style : solid ;
    border-width : 1 px ;
    font-size : 12px ;
}
#contenu
{
    position : absolute ;
    left : 20% ;
    top : 20% ;
    width : 80% ;
    heigth : 100% ; 
    border-style : solid ;
    border-width : 1 px ;
    font-size : 12px ;
    padding: 15px ;
    background-color: #99CCFF;
    min-heigth : 100% ;
 
 
}
#footer
{
    position : absolute ;
    bottom : -1px ;
    border-style : solid ;
    border-width : 1 px ;
    font-size : 12 px ;
    width : 100% ;
    height : 10% ;
    text-align : center ;
}
bodymenu {
 
	margin: 0;
	padding: 0;
	font: 12px verdana, arial, sans-serif;
}
dl, dt, dd, ul, li {
	margin: 0;
	padding: 0;
	list-style-type: none;
}
#menu {
	position: static; 
 
	top:0 px;
}
 
dl#menu {
	/*width: 160px;*/
         width:100%;
}
 
dl#menu dt {
	cursor: pointer;
	margin: 2px 0;
	height: 20px;
	line-height: 20px;
	text-align: center;
	font-weight: bold;
	border: 1px solid #99CCFF;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #FFFFFF;
	background-color: #99CCFF;
	font-size: 12px;
}
 
dl#menu dd {
	border: 1px solid #99CCFF;
}
 
dl#menu li {
	text-align: center;
}
 
dl#menu li a, dl#menu dt a {
	color: #000099;
	text-decoration: none;
	display: block;
	border: 0 none;
	height: 100%;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
}
 
dl#menu li a:hover, dl#menu dt a:hover {
	background: #660066;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	color: #FFFFFF;
	font-size: 12px;
}
 
.menu_bas {
	font-family: Arial, Helvetica, sans-serif;
	font-size: 12px;
	background-color: #660066;
	color: #FFFFFF;
	text-align: center;
	font-weight: normal;
}
.titre {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-style: normal;
	font-weight: bold;
	color: #669900;
	font-size: 14px;
}
.chapo {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #660066;
}
.texte {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #000000;
}
.ps {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 10px;
	font-weight: bold;
	color: #000099;
}
 
.textefonct {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #FFFF66;
	color: #000000;
}
.textemetier {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #FF99FF;
	color: #000000;
}
 
.textesupport {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #99CCFF;
	color: #000000;
}
.textemanage {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-style: normal;
	font-weight: normal;
	background-color: #99FF99;
	color: #000000;
}
.textebleu {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: normal;
	color: #0000CC;
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
 
}
.textesmall {
	font-family: Georgia, "Times New Roman", Times, serif;
	font-size: 11px;
	font-weight: normal;
	color: #000000;
	text-align: justify;
}
.textegras1 {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-style: normal;
	font-weight: bold;
	color: #000066;
	font-size: 12px;
	text-decoration: none;
	background-color: #99CCFF;
}
.texteblanc {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 12px;
	font-weight: bold;
	color: #FFFFFF;
	vertical-align: middle;
}
 
.menu_bas {
	font-family: Verdana, Arial, Helvetica, sans-serif;
	font-size: 11px;
	background-color: #99CCFF;
	background-position: center;
	cursor: e-resize;
	color: #FFFFFF;
	font-weight: bold;
}

Merci d'avance de votre aide