Ik ben bijna ten einde raad, vandaar mijn vraag aan jullie.
In de screenshot een website die volledig uit div's bestaat. Via de webdevelopment tool in Firefox heb ik de div's laten omlijnen met de naam erbij.
Duidelijk is te zien dat onder de #content div een ruimte van ongeveer 150 pixels zit, die ik er maar niet uit krijg. Aan de linkerkant zit een div met de adresgegevens.
Het lijkt dat de content div rekening houdt met de linker div (#left). Maar dat is dus niet zo. Als ik #left volledig uitschakel, blijft de website precies even hoog, dus daar ligt het niet aan.
De website rekt bij langere content prima mee, maar er blijft dus een ruimte onder de content div. Ik heb zowat alle hoogte's van de div's al eens aangepast, div's verwijderd, toegevoegd, maar kom er maar niet uit.
De screenshot:

CSS
HTML:
In de screenshot een website die volledig uit div's bestaat. Via de webdevelopment tool in Firefox heb ik de div's laten omlijnen met de naam erbij.
Duidelijk is te zien dat onder de #content div een ruimte van ongeveer 150 pixels zit, die ik er maar niet uit krijg. Aan de linkerkant zit een div met de adresgegevens.
Het lijkt dat de content div rekening houdt met de linker div (#left). Maar dat is dus niet zo. Als ik #left volledig uitschakel, blijft de website precies even hoog, dus daar ligt het niet aan.
De website rekt bij langere content prima mee, maar er blijft dus een ruimte onder de content div. Ik heb zowat alle hoogte's van de div's al eens aangepast, div's verwijderd, toegevoegd, maar kom er maar niet uit.
De screenshot:

CSS
Cascading Stylesheet:
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
| body#bodymain { background-image: url(/website/images/background.jpg); background-repeat: no-repeat; background-attachment: absolute; background-position: top center; line-height: 16px; } h1,h2,h3,h4,h5,h6,pre,form,body,html,blockquote,fieldset,input { margin:0; padding:0; } p { margin-top:0px; padding-top:0px; margin-bottom:4px; padding-bottom:4px; } h1 { font-size: 20px; font-weight: none; font-family: Lucida sans; color: #0c3b49; } a:link { font-weight: none; text-decoration: underline; color: #0c3b49;} a:active { font-weight: none; text-decoration: underline; color: #0c3b49;} a:visited { font-weight: none; text-decoration: underline; color: #0c3b49;} a:hover { font-weight: none; text-decoration: underline; color: #000000;} div#siteHolder { margin: 0px auto 0px auto; width: 750px; } #distance { position: relative; width:1px; height:30px; } div#container { background-image: url(/website/images/c_back.png); background-repeat: no-repeat; background-attachment: absolute; background-position: top center; text-align:left; position: relative; width: 750px; } div#menu { position: relative; left: 255px; top: -30px; height: 20px; width: 400px; } div#logo { background-image: url(/website/images/logo.png); background-repeat: no-repeat; background-attachment: absolute; background-position: top right; position: relative; left: 255px; top: 10px; height: 95px; width: 425px; } div#submenu { position: relative; text-align: left; top: 100px; left: 49px; width: 160px; height: 160px; color: #0c3b49; font-weight: bold; } div#left { position: absolute; text-align: right; bottom: 35px; left: 40px; width: 160px; height: 160px; color: #0c3b49; font-weight: bold; } div#content { position: relative; min-height: 275px; width: 420px; top: -160px; left: 256px; } div#footer { background-image: url(/website/images/footer.png); background-repeat: no-repeat; background-attachment: absolute; background-position: bottom right; color: white; position: relative; bac/kground-color: #bbc5ce; font-size: 10px; height: 94px; width: 100%; text-align: center; } div#footer2 { position: relative; border:solid 0px blue; top: 69px; } |
HTML:
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <div id="siteHolder"> <div id="distance"></div> <div id="container"> <div id="logo"></div> <div id="menu"> <table>menu boven</table> </div> <div id="left">adres</div> <div id="content"></div> <div id="footer"> <div id="footer2">footer</div> </div> </div> </div> |