layout automatisch meegaan
heb een probleempje ben bezig met een lay-out gebaseerd op div's
ipv tabellen.
Maar nu zit ik dat de lay-out niet mee gaat met de content.
gaat om de zij balken en de menu's.
site: http://www.ab.devriesdesign.cjb.net/test.php
dit is mijn 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
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
<style type="text/css">
<!--
body {
background:url(images/main/bgmain.jpg);
text-align: center;
}
#main {
position:relative;
width:976px;
height:900px;
margin-left:auto;
margin-right:auto;
overflow:hidden;
}
#header {
background-image:url(images/main/header.jpg);
position: absolute;
top: 0px;
width: 976px;
height: 147px;
}
#header2 {
background-image:url(images/main/header2.jpg);
position:absolute;
top:147px;
width:976px;
height:30px;
}
#left {
background-image:url(images/main/links1.jpg);
position:absolute;
top:177px;
left:auto;
width:14px;
height:900px;
}
#menuleft {
background:#282828;
position:absolute;
top:177px;
width:150px;
height:900px;
left:14px;
text-align:left;
}
#content {
background:#282828;
position:absolute;
top:177px;
width:649px;
height:900px;
left:164px;
}
#content2 {
background:#282828;
position:absolute;
top:0px;
width:629px;
height:900px;
left:5px;
}
#right {
background-image:url(images/main/rechts1.jpg);
position:absolute;
top:177px;
left:962px;
width:14px;
height:900px;
}
#menuright {
background:#282828;
position:absolute;
top:177px;
left:802px;
width:160px;
height:900px;
}
#footer {
background-image:url(images/main/header2.jpg);
position:absolute;
border-radius:0px;
top:1050px;
width:976px;
height:30px;
text-align:center;
clear:both;
}
#copyright {
position:absolute;
top:1054px;
width:976px;
height:10px;
color:#FFFFFF;
text-align:center;
}
</script>
<!--
body {
background:url(images/main/bgmain.jpg);
text-align: center;
}
#main {
position:relative;
width:976px;
height:900px;
margin-left:auto;
margin-right:auto;
overflow:hidden;
}
#header {
background-image:url(images/main/header.jpg);
position: absolute;
top: 0px;
width: 976px;
height: 147px;
}
#header2 {
background-image:url(images/main/header2.jpg);
position:absolute;
top:147px;
width:976px;
height:30px;
}
#left {
background-image:url(images/main/links1.jpg);
position:absolute;
top:177px;
left:auto;
width:14px;
height:900px;
}
#menuleft {
background:#282828;
position:absolute;
top:177px;
width:150px;
height:900px;
left:14px;
text-align:left;
}
#content {
background:#282828;
position:absolute;
top:177px;
width:649px;
height:900px;
left:164px;
}
#content2 {
background:#282828;
position:absolute;
top:0px;
width:629px;
height:900px;
left:5px;
}
#right {
background-image:url(images/main/rechts1.jpg);
position:absolute;
top:177px;
left:962px;
width:14px;
height:900px;
}
#menuright {
background:#282828;
position:absolute;
top:177px;
left:802px;
width:160px;
height:900px;
}
#footer {
background-image:url(images/main/header2.jpg);
position:absolute;
border-radius:0px;
top:1050px;
width:976px;
height:30px;
text-align:center;
clear:both;
}
#copyright {
position:absolute;
top:1054px;
width:976px;
height:10px;
color:#FFFFFF;
text-align:center;
}
</script>
En dit de HTML
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
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
<!--Hoofd div voor centreren-->
<div id="main">
<!--Hoofd div voor centreren-->
<div id="header"></div>
<div id="header2"></div>
<div id="left"></div>
<div id="menuleft"><br/><?php include("menu1.php"); ?></div>
<div id="content">
<div id="content2">
<?php
/*
include("config.php");
if($_GET['p'] != "")
{
include("{$_GET['p']}.php");
}
else
{
include("home2.php");
}
*/
?>
</div>
</div>
<div id="right"></div>
<div id="menuright"><br/><?php include("menurechts.php"); ?></div>
<div id="footer"></div>
<div id="copyright">copyright devriesdesign 2010-2011</div>
<!--Hoofd div voor centreren-->
</div>
<div id="main">
<!--Hoofd div voor centreren-->
<div id="header"></div>
<div id="header2"></div>
<div id="left"></div>
<div id="menuleft"><br/><?php include("menu1.php"); ?></div>
<div id="content">
<div id="content2">
<?php
/*
include("config.php");
if($_GET['p'] != "")
{
include("{$_GET['p']}.php");
}
else
{
include("home2.php");
}
*/
?>
</div>
</div>
<div id="right"></div>
<div id="menuright"><br/><?php include("menurechts.php"); ?></div>
<div id="footer"></div>
<div id="copyright">copyright devriesdesign 2010-2011</div>
<!--Hoofd div voor centreren-->
</div>
Wat doe ik niet goed?
je heights, overal zeg je dat die div maar zo hoog mag zijn, niet kleiner en niet groter,
maak van de height een min-height of haal hem helemaal weg en probeer dan nog eens.