Website + Cms
www.kevinvandooren.nl)
maar deze werkt niet helemaal goed, ik heb namelijk een cms systeem (fundanemt) erin verwerkt. Ik laat steeds de tekst van de content div veranderen maar de hoogte van de Div rekt niet mee met de hoeveelheid tekst! kunnen jullie helpen?
Kijk voor een voorbeeld hier http://kevinvandooren.nl/index.php?ID=8&lang=en
voorbeeld code
-------------------------------------
<html>
<head>
<link rel="stylesheet" hreff="style.css">
</head>
<body>
<Div id="header">
<div id="tabel"> <div id="menu"> </div> <div id="content"> </div>
<div id="footer">
</body>
</html>
---------CSS--------------
#header{
background:url(images/header.jpg);
height:160px;
width:800px;
}
#tabel{
width:800px;
height:700px;
background:url(images/tekst.jpg);
}
#footer {
height:30px;
width:800px;
background:url(images/footer.jpg);
}
#menu {
border-left: 20px;
float:left;
width:180px;
height:100px;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
#content {
float:left;
width:500px;
height:100px;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
Ik heb een website gemaakt ( maar deze werkt niet helemaal goed, ik heb namelijk een cms systeem (fundanemt) erin verwerkt. Ik laat steeds de tekst van de content div veranderen maar de hoogte van de Div rekt niet mee met de hoeveelheid tekst! kunnen jullie helpen?
Kijk voor een voorbeeld hier http://kevinvandooren.nl/index.php?ID=8&lang=en
voorbeeld code
-------------------------------------
<html>
<head>
<link rel="stylesheet" hreff="style.css">
</head>
<body>
<Div id="header">
<div id="tabel"> <div id="menu"> </div> <div id="content"> </div>
<div id="footer">
</body>
</html>
---------CSS--------------
#header{
background:url(images/header.jpg);
height:160px;
width:800px;
}
#tabel{
width:800px;
height:700px;
background:url(images/tekst.jpg);
}
#footer {
height:30px;
width:800px;
background:url(images/footer.jpg);
}
#menu {
border-left: 20px;
float:left;
width:180px;
height:100px;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
#content {
float:left;
width:500px;
height:100px;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
Gewijzigd op 01/01/1970 01:00:00 door Kevin van Dooren
De height moet natuurlijk automatisch gaan. Dus geen vaste waardes geven...
alleen als je nu kijkt naar het rusultaat bij bijv deze pagina in firefox!
http://kevinvandooren.nl/index.php?ID=8&lang=en
ja maar geef eens ff de code van die pagina, want er zijn meer divs he....
------------------------
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
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
<?php
/*
*File: fundanemt.php
*Description: Fundanemt frontend website
* This website is an example on how to use the functions provided by the
* html.inc library which takes care off the communication between the database
* and the frontend.
*Version: 2.0
*Created: 05-02-2003
*Author: Christian Hansen
*Email: [email protected]
*
*License: GPL 2
*/
/*NOTE NOTE NOTE NOTE
*This file should not be placed in the fundanemt folder as it is now.
*instead you should move it up 1 level so that this file would be in the
*same folder as the fundanemt folder
*/
/*include the parser. If this file is placed in the fundanemt folder
*you should consider to moved up 1 level. Otherwise change the inclusion
*to "include(fundaClient/html.class)"
*/
include("fundanemt/fundaClient/html.class");
/*
*Initialize the parser object. First parameter is the default ID. Second parameter is
*the sitename. Third parameter is optional and used to seperate sitename and pagetitle
*/
$parser = new html(1,"Fundanemt","-");
//style attributes for menu level 1.
//+active -submenu -show
$arrayMenuStyle[1]['IOO'] = "<a href=\"URL\" class=\"l1\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[1]['III'] = "<a href=\"URL\" class=\"l1\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[1]['OIO'] = "<a href=\"URL\" class=\"l1\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[1]['OOO'] = "<a href=\"URL\" class=\"l1\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[1]['OII'] = "<a href=\"URL\" class=\"l1\"><i><u>TITLE</u></i></a><br>";
//style attributes for menu level 2.
//+active -submenu -show
$arrayMenuStyle[2]['IOO'] = "<a href=\"URL\" class=\"l2\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[2]['III'] = "<a href=\"URL\" class=\"l2\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[2]['OIO'] = "<a href=\"URL\" class=\"l2\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[2]['OOO'] = "<a href=\"URL\" class=\"l2\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[2]['OII'] = "<a href=\"URL\" class=\"l2\"><i><u>TITLE</u></i></a><br>";
//style attributes for menu level 3.
//+active -submenu -show
$arrayMenuStyle[3]['IOO'] = "<a href=\"URL\" class=\"l3\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[3]['III'] = "<a href=\"URL\" class=\"l3\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[3]['OIO'] = "<a href=\"URL\" class=\"l3\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[3]['OOO'] = "<a href=\"URL\" class=\"l3\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[3]['OII'] = "<a href=\"URL\" class=\"l3\"><i><u>TITLE</u></i></a><br>";
//if no style is defined for the choosen menulevel this style is aplied.
//+active -submenu -show
$arrayMenuStyle[0]['IOO'] = "<a href=\"URL\" class=\"l0\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[0]['III'] = "<a href=\"URL\" class=\"l0\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[0]['OIO'] = "<a href=\"URL\" class=\"l0\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[0]['OOO'] = "<a href=\"URL\" class=\"l0\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[0]['OII'] = "<a href=\"URL\" class=\"l0\"><i><u>TITLE</u></i></a><br>";
/*
*Define the layout for the factbox. You may use 3 keywords:
*HEADER - is replaced with the actual header when the script is parsed
*IMGLINK - is replaced with the image/linked image when the script is parsed
*CONTENT - is replaced with the content of the factbox when the script is parsed
*/
$flayout = "
<table border=\"0\" style=\"border:solid;border-color:#000000;border-width:1px;width:150px;\">
<tr>
<td style=\"background-color:#000000;color:#ffffff;font-weight:700;width=100%;\">
HEADER
</td>
</tr>
<tr>
<td>
IMGLINK
<p>
CONTENT
</td>
</tr>
</table>
<br>
";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title> --www.kevinvandooren.nl--</title>
<link rel="stylesheet" href="style.css" />
<?php $parser->printJavaScript(); ?>
</head>
<body id="body">
<center>
<div id="tabel">
<div id="header"> </div>
<div id="menu" align="center">
<div id="navcontainer">
<ul id="navlist">
<li>
<?php
//print the menu
$parser->printMenu($arrayMenuStyle);
?>
</li>
</ul>
</div>
<p> </p>
<p><a href="http://kevinvandooren.nl/fundanemt" target="_blank">
<?php
//print the factbox if any, send the specified layout along as a parameter.
$parser->printFactBox($flayout);
?>
</a></p>
<p><a href="http://kevinvandooren.nl/fundanemt" target="_blank">Login</a></p>
</div>
<div id="tekst" align="left">
<?php
//print the content
$parser->printSiteContent();
?>
</div>
</div> <div id="footer"> </div>
</center>
</body>
</html>
----CSS----
/* CSS Document */
#body {
margin-top:0px;
background:#2E9CFE;
}
#header{
background:url(images/header.jpg);
height:160px;
width:800px;
}
#tabel{
width:800px;
height:auto;
background:url(images/tekst.jpg);
}
#footer {
height:30px;
width:800px;
background:url(images/footer.jpg);
}
#menu {
border-left: 20px;
float:left;
width:180px;
height:auto;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
#tekst {
float:left;
width:500px;
height:auto;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
/* MENU */
#navcontainer {
font:Arial;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
width:200px;
height:auto;
margin-top:0px;
margin-left:0px;
}
#navlist
{
padding: 1px;
margin-left: 0;
font: 11px verdana, sans-serif;
width: 14em;
color: gray; }
#navlist li
{
list-style: none;
margin: 0px;
border-left: 1px #F7971E solid;
border-bottom: 1px #F7971E solid;
text-align: left;
}
#navlist li a
{
display: block;
padding: 0.7em 0.5em 0.7em 0.9em;
text-decoration: none;
}
#navlist li a:link { color: #000; }
#navlist li a:visited { color: #006; }
#navlist li a:hover
{
font-weight:bold;
color: ##0099FF;
background: #FFFFFF;
border-left: 3px #99FF00 solid;
}
/*
*File: fundanemt.php
*Description: Fundanemt frontend website
* This website is an example on how to use the functions provided by the
* html.inc library which takes care off the communication between the database
* and the frontend.
*Version: 2.0
*Created: 05-02-2003
*Author: Christian Hansen
*Email: [email protected]
*
*License: GPL 2
*/
/*NOTE NOTE NOTE NOTE
*This file should not be placed in the fundanemt folder as it is now.
*instead you should move it up 1 level so that this file would be in the
*same folder as the fundanemt folder
*/
/*include the parser. If this file is placed in the fundanemt folder
*you should consider to moved up 1 level. Otherwise change the inclusion
*to "include(fundaClient/html.class)"
*/
include("fundanemt/fundaClient/html.class");
/*
*Initialize the parser object. First parameter is the default ID. Second parameter is
*the sitename. Third parameter is optional and used to seperate sitename and pagetitle
*/
$parser = new html(1,"Fundanemt","-");
//style attributes for menu level 1.
//+active -submenu -show
$arrayMenuStyle[1]['IOO'] = "<a href=\"URL\" class=\"l1\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[1]['III'] = "<a href=\"URL\" class=\"l1\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[1]['OIO'] = "<a href=\"URL\" class=\"l1\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[1]['OOO'] = "<a href=\"URL\" class=\"l1\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[1]['OII'] = "<a href=\"URL\" class=\"l1\"><i><u>TITLE</u></i></a><br>";
//style attributes for menu level 2.
//+active -submenu -show
$arrayMenuStyle[2]['IOO'] = "<a href=\"URL\" class=\"l2\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[2]['III'] = "<a href=\"URL\" class=\"l2\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[2]['OIO'] = "<a href=\"URL\" class=\"l2\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[2]['OOO'] = "<a href=\"URL\" class=\"l2\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[2]['OII'] = "<a href=\"URL\" class=\"l2\"><i><u>TITLE</u></i></a><br>";
//style attributes for menu level 3.
//+active -submenu -show
$arrayMenuStyle[3]['IOO'] = "<a href=\"URL\" class=\"l3\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[3]['III'] = "<a href=\"URL\" class=\"l3\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[3]['OIO'] = "<a href=\"URL\" class=\"l3\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[3]['OOO'] = "<a href=\"URL\" class=\"l3\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[3]['OII'] = "<a href=\"URL\" class=\"l3\"><i><u>TITLE</u></i></a><br>";
//if no style is defined for the choosen menulevel this style is aplied.
//+active -submenu -show
$arrayMenuStyle[0]['IOO'] = "<a href=\"URL\" class=\"l0\"><b>TITLE</b></a><br>";
//+active +submenu +show
$arrayMenuStyle[0]['III'] = "<a href=\"URL\" class=\"l0\"><b><u>TITLE</u></b></a><br>";
//-active +submenu -show
$arrayMenuStyle[0]['OIO'] = "<a href=\"URL\" class=\"l0\"><u>TITLE</u></a><br>";
//-active -submenu -show
$arrayMenuStyle[0]['OOO'] = "<a href=\"URL\" class=\"l0\">TITLE</a><br>";
//-active +submenu +show
$arrayMenuStyle[0]['OII'] = "<a href=\"URL\" class=\"l0\"><i><u>TITLE</u></i></a><br>";
/*
*Define the layout for the factbox. You may use 3 keywords:
*HEADER - is replaced with the actual header when the script is parsed
*IMGLINK - is replaced with the image/linked image when the script is parsed
*CONTENT - is replaced with the content of the factbox when the script is parsed
*/
$flayout = "
<table border=\"0\" style=\"border:solid;border-color:#000000;border-width:1px;width:150px;\">
<tr>
<td style=\"background-color:#000000;color:#ffffff;font-weight:700;width=100%;\">
HEADER
</td>
</tr>
<tr>
<td>
IMGLINK
<p>
CONTENT
</td>
</tr>
</table>
<br>
";
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title> --www.kevinvandooren.nl--</title>
<link rel="stylesheet" href="style.css" />
<?php $parser->printJavaScript(); ?>
</head>
<body id="body">
<center>
<div id="tabel">
<div id="header"> </div>
<div id="menu" align="center">
<div id="navcontainer">
<ul id="navlist">
<li>
<?php
//print the menu
$parser->printMenu($arrayMenuStyle);
?>
</li>
</ul>
</div>
<p> </p>
<p><a href="http://kevinvandooren.nl/fundanemt" target="_blank">
<?php
//print the factbox if any, send the specified layout along as a parameter.
$parser->printFactBox($flayout);
?>
</a></p>
<p><a href="http://kevinvandooren.nl/fundanemt" target="_blank">Login</a></p>
</div>
<div id="tekst" align="left">
<?php
//print the content
$parser->printSiteContent();
?>
</div>
</div> <div id="footer"> </div>
</center>
</body>
</html>
----CSS----
/* CSS Document */
#body {
margin-top:0px;
background:#2E9CFE;
}
#header{
background:url(images/header.jpg);
height:160px;
width:800px;
}
#tabel{
width:800px;
height:auto;
background:url(images/tekst.jpg);
}
#footer {
height:30px;
width:800px;
background:url(images/footer.jpg);
}
#menu {
border-left: 20px;
float:left;
width:180px;
height:auto;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
#tekst {
float:left;
width:500px;
height:auto;
font:Arial;
font-family:Arial, Helvetica, sans-serif;
}
/* MENU */
#navcontainer {
font:Arial;
font-family:Arial, Helvetica, sans-serif;
font-size:12px;
float:left;
width:200px;
height:auto;
margin-top:0px;
margin-left:0px;
}
#navlist
{
padding: 1px;
margin-left: 0;
font: 11px verdana, sans-serif;
width: 14em;
color: gray; }
#navlist li
{
list-style: none;
margin: 0px;
border-left: 1px #F7971E solid;
border-bottom: 1px #F7971E solid;
text-align: left;
}
#navlist li a
{
display: block;
padding: 0.7em 0.5em 0.7em 0.9em;
text-decoration: none;
}
#navlist li a:link { color: #000; }
#navlist li a:visited { color: #006; }
#navlist li a:hover
{
font-weight:bold;
color: ##0099FF;
background: #FFFFFF;
border-left: 3px #99FF00 solid;
}
Gewijzigd op 01/01/1970 01:00:00 door Kevin van Dooren
?
Wat heb je zelf al geprobeerd? Heb je al gezocht op google? Ik heb geen zin en geen tijd om die code door te gaan spitten naar een misschien wel heel kleine foutje....
JAMBOREE RULES (al was ik bij de vorige maar niet deze :-( )
height: auto;
Dat is de standaardinstelling, dus die hoef je niet expliciet op te geven.
In IE7 zie ik geen problemen hoor..
je footer is prut