[divs] mijn rechter menu
dit is mijn eerste site waar ik divs in gebruik en ik snap er niet zo veel van zou iemand me even kunnen uitleggen waarom mijn rechter menu geen 100% wilt zijn?
NU:
-------------
| |
-------------
| | | |
|-|
| |
|-|
-------------
| |
-------------
Moet worden:
-------------
| |
-------------
| | | |
|-| | |
| | | |
|-| | |
-------------
| |
-------------
Index.php
Code (php)
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
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
<!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">
<head>
<title>TEST SITE!</title>
<link rel="stylesheet" href="styles/v1.css" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="backpanel">
<div id="banner"></div>
<div id="menu_left">
<div class="leftmenu">
<div class="header"><h2><span class="span1"> + menu1 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu1
</div>
<div class="header"><h2><span class="span1"> + menu2 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu2
</div>
<div class="header"><h2><span class="span1"> + menu3 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu3
</div>
</div>
</div>
<div id="fill">
<div id="content">
<?php include("content.php"); ?>
</div>
</div>
<div id="menu_right">
<div class="rightmenu">
<div class="header"><h2><span class="span1"> + menu4 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu4
</div>
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>TEST SITE!</title>
<link rel="stylesheet" href="styles/v1.css" />
<script type="text/javascript">
</script>
</head>
<body>
<div id="backpanel">
<div id="banner"></div>
<div id="menu_left">
<div class="leftmenu">
<div class="header"><h2><span class="span1"> + menu1 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu1
</div>
<div class="header"><h2><span class="span1"> + menu2 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu2
</div>
<div class="header"><h2><span class="span1"> + menu3 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu3
</div>
</div>
</div>
<div id="fill">
<div id="content">
<?php include("content.php"); ?>
</div>
</div>
<div id="menu_right">
<div class="rightmenu">
<div class="header"><h2><span class="span1"> + menu4 </span></h2></div>
<div class="fill">
BLAAT BLAAT menu4
</div>
</div>
</div>
<div id="footer"></div>
</div>
</body>
</html>
v1.css
Code (php)
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
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
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
/***********************************************************************************************/
/* IDs */
/***********************************************************************************************/
#banner , #backpanel , #footer
{
display:block;
width:900px;
}
#backpanel
{
position:absolute;
left:50%;
top:50px;
height:100%;
margin-left:-400px;
background-image:url(../images/v1/fill.jpg);
background-repeat:repeat-y;
}
#banner
{
height:150px;
float:center;
background-image:url(../images/v1/header.png);
background-color:#000000;
background-repeat:no-repeat;
}
#menu_left
{
display:block;
width:190px;
height:auto;
float:left;
background-color:#000000;
}
#menu_right
{
display:block;
width:190px;
height:auto;
float:right;
background-color:#000000;
}
#content
{
display:block;
width:480px;
margin-left:20px;
margin-right:0px;
margin-top:10px;
margin-bottom:0px;
font-family: verdana;
font-size: 10px;
color: #FFFFFF;
height:auto;
float:center;
background-color:#000000;
}
#fill
{
display:block;
width:520px;
height:auto;
float:left;
background-color:#000000;
}
#footer
{
height:25px;
float:left;
background-image:url(../images/v1/footer.png);
background-color:#000000;
background-repeat:no-repeat;
}
/***********************************************************************************************/
/* Styles */
/***********************************************************************************************/
body
{
background-color:black;
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
width:100%;
height:100%;
}
span.navb
{
margin-left:20px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
padding:0px 0px 0px 0px;
border-left:0px;
border-top:0px;
border-right:0px;
}
h1,h2
{
display:block;
margin-left:10px;
margin-right:10px;
margin-top:0px;
margin-bottom:0px;
padding:0px 0px 0px 0px;
border-left:0px;
border-top:0px;
border-right:0px;
}
h1 span.span1 , h1 span.span2 ,h1 span.span3
{
display:block;
height:16px;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
}
h1 span.span1
{
}
h1 span.span2
{
}
h1 span.span3
{
}
h2 span.span1 , h2 span.span2 ,h2 span.span3
{
display:block;
height:16px;
font-family:verdana;
font-size:16px;
font-weight:900;
color:#FFFFFF;
}
h2 span.span1
{
}
h2 span.span2
{
}
h2 span.span3
{
}
/***********************************************************************************************/
/* CLASSES */
/***********************************************************************************************/
div.leftmenu
{
display:block;
width:190px;
float:left;
}
div.rightmenu
{
display:block;
width:190px;
float:right;
}
div.leftmenu div.header
{
height:25px;
width:190px;
background-image:url(../images/v1/menu_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.rightmenu div.header
{
height:25px;
width:190px;
background-image:url(../images/v1/menu_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.leftmenu div.fill
{
margin-left:0px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
width:180px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/menu_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
div.rightmenu div.fill
{
margin-left:10px;
margin-right:0px;
margin-top:0px;
margin-bottom:-10px;
width:180px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/menu_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
a.navlink
{
color:#FFFFFF;
}
a.navlink:active
{
text-decoration: none;
}
a.navlink:hover
{
text-decoration: none;
}
input.invisible
{
margin-left:20px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
background-color: #000000;
border-style: inset;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
color: #FFFFFF;
font-family: verdana;
font-size: 10px;
}
/* error.php */
div.error
{
display:block;
width:480px;
margin-left:20px;
margin-right:20px;
margin-top:0px;
margin-bottom:0px;
font-family: Lucida Console;
font-size: -4;
color: #FFFFFF;
height:auto;
float:left;
background-color:#000000;
}
*/ news.php */
div.mainbox
{
font-family: verdana;
font-size: 10px;
color: #FFFFFF;
height:auto;
float:center;
background-color:#000000;
}
div.mainbox,div.header
{
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
height:25px;
width:480px;
background-image:url(../images/v1/main_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.mainbox,div.fill
{
width:480px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/main_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
div.mainbox,div.footer
{
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
height:25px;
width:480px;
background-image:url(../images/v1/main_footer.png);
background-color:#000000;
background-repeat:no-repeat;
}
/* IDs */
/***********************************************************************************************/
#banner , #backpanel , #footer
{
display:block;
width:900px;
}
#backpanel
{
position:absolute;
left:50%;
top:50px;
height:100%;
margin-left:-400px;
background-image:url(../images/v1/fill.jpg);
background-repeat:repeat-y;
}
#banner
{
height:150px;
float:center;
background-image:url(../images/v1/header.png);
background-color:#000000;
background-repeat:no-repeat;
}
#menu_left
{
display:block;
width:190px;
height:auto;
float:left;
background-color:#000000;
}
#menu_right
{
display:block;
width:190px;
height:auto;
float:right;
background-color:#000000;
}
#content
{
display:block;
width:480px;
margin-left:20px;
margin-right:0px;
margin-top:10px;
margin-bottom:0px;
font-family: verdana;
font-size: 10px;
color: #FFFFFF;
height:auto;
float:center;
background-color:#000000;
}
#fill
{
display:block;
width:520px;
height:auto;
float:left;
background-color:#000000;
}
#footer
{
height:25px;
float:left;
background-image:url(../images/v1/footer.png);
background-color:#000000;
background-repeat:no-repeat;
}
/***********************************************************************************************/
/* Styles */
/***********************************************************************************************/
body
{
background-color:black;
margin:0px 0px 0px 0px;
padding:0px 0px 0px 0px;
width:100%;
height:100%;
}
span.navb
{
margin-left:20px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
padding:0px 0px 0px 0px;
border-left:0px;
border-top:0px;
border-right:0px;
}
h1,h2
{
display:block;
margin-left:10px;
margin-right:10px;
margin-top:0px;
margin-bottom:0px;
padding:0px 0px 0px 0px;
border-left:0px;
border-top:0px;
border-right:0px;
}
h1 span.span1 , h1 span.span2 ,h1 span.span3
{
display:block;
height:16px;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
}
h1 span.span1
{
}
h1 span.span2
{
}
h1 span.span3
{
}
h2 span.span1 , h2 span.span2 ,h2 span.span3
{
display:block;
height:16px;
font-family:verdana;
font-size:16px;
font-weight:900;
color:#FFFFFF;
}
h2 span.span1
{
}
h2 span.span2
{
}
h2 span.span3
{
}
/***********************************************************************************************/
/* CLASSES */
/***********************************************************************************************/
div.leftmenu
{
display:block;
width:190px;
float:left;
}
div.rightmenu
{
display:block;
width:190px;
float:right;
}
div.leftmenu div.header
{
height:25px;
width:190px;
background-image:url(../images/v1/menu_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.rightmenu div.header
{
height:25px;
width:190px;
background-image:url(../images/v1/menu_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.leftmenu div.fill
{
margin-left:0px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
width:180px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/menu_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
div.rightmenu div.fill
{
margin-left:10px;
margin-right:0px;
margin-top:0px;
margin-bottom:-10px;
width:180px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/menu_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
a.navlink
{
color:#FFFFFF;
}
a.navlink:active
{
text-decoration: none;
}
a.navlink:hover
{
text-decoration: none;
}
input.invisible
{
margin-left:20px;
margin-right:0px;
margin-top:0px;
margin-bottom:0px;
background-color: #000000;
border-style: inset;
border-top: 1px solid #000000;
border-left: 1px solid #000000;
border-right: 1px solid #000000;
border-bottom: 1px solid #000000;
color: #FFFFFF;
font-family: verdana;
font-size: 10px;
}
/* error.php */
div.error
{
display:block;
width:480px;
margin-left:20px;
margin-right:20px;
margin-top:0px;
margin-bottom:0px;
font-family: Lucida Console;
font-size: -4;
color: #FFFFFF;
height:auto;
float:left;
background-color:#000000;
}
*/ news.php */
div.mainbox
{
font-family: verdana;
font-size: 10px;
color: #FFFFFF;
height:auto;
float:center;
background-color:#000000;
}
div.mainbox,div.header
{
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
height:25px;
width:480px;
background-image:url(../images/v1/main_header.png);
background-color:#000000;
background-repeat:no-repeat;
}
div.mainbox,div.fill
{
width:480px;
height:auto;
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
background-image:url(../images/v1/main_fill.png);
background-color:#000000;
background-repeat:repeat-y;
}
div.mainbox,div.footer
{
font-family:verdana;
font-size:10px;
font-weight:500;
color:#FFFFFF;
height:25px;
width:480px;
background-image:url(../images/v1/main_footer.png);
background-color:#000000;
background-repeat:no-repeat;
}
Edit: Sry voor de slordige tekeningetjes bovenaan en de wat slordige layout van deze post
Gewijzigd op 07/05/2005 17:23:00 door Ward
Zet boven aan in je css
html, body {
height: 100%;
}
IE denkt namelijk dat een pagina niet 100% hoog is
html, body {
height: 100%;
}
bovenaan mijn css zetten lost het probleem niet op. :'(
{
display:block;
width:190px;
height:auto;
float:right;
background-color:#000000;
}
Moet je dan wel height: 100% van maken.
Over het hoofd gezien
kdenk dak een uurtje teveel achter de pc zit :p
bedankt Webmakerij!