Border loopt niet door.
ik heb een probleempje met mijn border van mijn #holder waar alles in zit.
Die loopt in IE helemaal door zo als bedoeld is. maar in FF loopt hij niet door.
Als ik mijn hoogte van mijn #holder in css naar een getal.px zet loopt hij wel door. Pagina beving zich hier: http://84.81.3.172/
betrefende CSS code:
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
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
<?
<style type="text/css">
body {
background-image:url(images/bg.jpg);
background-repeat:repeat-x;
background-color:#FFFFFF;
}
#holder {
display:block;
border:1px solid;
border-color:#000000;
height:auto;
width:698px;
text-align:left;
}
#header {
background-image:url(images/head.jpg);
background-color:#000000;
background-position:center;
background-repeat:no-repeat;
display:block;
height:103px;
width:698px;
}
#menu {
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
width:698px;
height:16px;
font-family:Arial;
font-size:14px;
font-weight:800;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:hover {
float:left;
background-image:url(images/menu_over.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:active {
float:left;
background-image:url(images/menu_actief.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#page {
background-image:url(images/page_bg.jpg);
background-repeat:repeat;
display:block;
height:
border-top:1px solid #000000;
padding:10px;
float:left;
}
#bericht {
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:300px;
float:left;
}
#bericht_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:360px;
height:280px;
}
#Flash {
margin-left:10px;
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:auto;
float:right;
}
#Flash_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:225px;
height:100px;
}
</style>
?>
<style type="text/css">
body {
background-image:url(images/bg.jpg);
background-repeat:repeat-x;
background-color:#FFFFFF;
}
#holder {
display:block;
border:1px solid;
border-color:#000000;
height:auto;
width:698px;
text-align:left;
}
#header {
background-image:url(images/head.jpg);
background-color:#000000;
background-position:center;
background-repeat:no-repeat;
display:block;
height:103px;
width:698px;
}
#menu {
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
width:698px;
height:16px;
font-family:Arial;
font-size:14px;
font-weight:800;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:hover {
float:left;
background-image:url(images/menu_over.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:active {
float:left;
background-image:url(images/menu_actief.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#page {
background-image:url(images/page_bg.jpg);
background-repeat:repeat;
display:block;
height:
border-top:1px solid #000000;
padding:10px;
float:left;
}
#bericht {
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:300px;
float:left;
}
#bericht_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:360px;
height:280px;
}
#Flash {
margin-left:10px;
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:auto;
float:right;
}
#Flash_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:225px;
height:100px;
}
</style>
?>
Betreffende HTML code:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?
<body>
<div align="center">
<div id="holder">
<!--Head-->
<div id="header"> </div>
<!--/Head Start Menu-->
<div id="menu"> <a href="#">Home</a><a href="#">Informatie</a><a href="#">Archief</a> </div>
<!--/Menu Start page-->
<div id="page">
<div id="bericht">
<div id="bericht_holder">Hoi</div>
</div>
<div id="Flash">
<div id="Flash_holder">Hoi</div>
</div>
</div>
<!--/page-->
</div>
</div>
</body>
?>
<body>
<div align="center">
<div id="holder">
<!--Head-->
<div id="header"> </div>
<!--/Head Start Menu-->
<div id="menu"> <a href="#">Home</a><a href="#">Informatie</a><a href="#">Archief</a> </div>
<!--/Menu Start page-->
<div id="page">
<div id="bericht">
<div id="bericht_holder">Hoi</div>
</div>
<div id="Flash">
<div id="Flash_holder">Hoi</div>
</div>
</div>
<!--/page-->
</div>
</div>
</body>
?>
Alvast bedankt. ik hoop dat jullie me kunne helpen
Gewijzigd op 01/01/1970 01:00:00 door Fred Binnenpret
Edit:
Ik zie het al; je cleart je floats niet goed. Zie voorbeeld hieronder:
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
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
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
background-image:url(images/bg.jpg);
background-repeat:repeat-x;
background-color:#FFFFFF;
}
#holder {
background: #eee;
display:block;
border:1px solid;
border-color:#000000;
height:auto;
width:698px;
text-align:left;
}
#header {
background-image:url(images/head.jpg);
background-color:#000000;
background-position:center;
background-repeat:no-repeat;
display:block;
height:103px;
width:698px;
}
#menu {
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
width:698px;
height:16px;
font-family:Arial;
font-size:14px;
font-weight:800;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:hover {
float:left;
background-image:url(images/menu_over.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:active {
float:left;
background-image:url(images/menu_actief.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#page {
background-image:url(images/page_bg.jpg);
background-repeat:repeat;
display:block;
height:
border-top:1px solid #000000;
padding:10px;
float:left;
}
#bericht {
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:300px;
float:left;
}
#bericht_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:360px;
height:280px;
}
#Flash {
margin-left:10px;
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:auto;
float:right;
}
#Flash_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:225px;
height:100px;
}
hr.clearer {
clear: both;
visibility: hidden;
height: 0px;
line-height: 0px;
}
</style>
</head>
<body>
<div align="center">
<div id="holder">
<!--Head-->
<div id="header"> </div>
<!--/Head Start Menu-->
<div id="menu"> <a href="#">Home</a><a href="#">Informatie</a><a href="#">Archief</a> </div>
<!--/Menu Start page-->
<div id="page">
<div id="bericht">
<div id="bericht_holder">Hoi</div>
</div>
<div id="Flash">
<div id="Flash_holder">Hoi</div>
</div>
</div>
<!--/page-->
<hr class="clearer">
</div>
</div>
</body>
</html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<title>Untitled Document</title>
<style type="text/css">
body {
background-image:url(images/bg.jpg);
background-repeat:repeat-x;
background-color:#FFFFFF;
}
#holder {
background: #eee;
display:block;
border:1px solid;
border-color:#000000;
height:auto;
width:698px;
text-align:left;
}
#header {
background-image:url(images/head.jpg);
background-color:#000000;
background-position:center;
background-repeat:no-repeat;
display:block;
height:103px;
width:698px;
}
#menu {
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
width:698px;
height:16px;
font-family:Arial;
font-size:14px;
font-weight:800;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a, #menu a:link, #menu a:visited {
float:left;
background-image:url(images/menu_bg.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:hover {
float:left;
background-image:url(images/menu_over.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#menu a:active {
float:left;
background-image:url(images/menu_actief.jpg);
background-repeat:repeat-x;
display:block;
text-align:center;
border-right:1px solid #000000;
width:auto;
padding-left:15px;
padding-right:15px;
height:16px;
text-decoration:none;
color:#000000;
}
#page {
background-image:url(images/page_bg.jpg);
background-repeat:repeat;
display:block;
height:
border-top:1px solid #000000;
padding:10px;
float:left;
}
#bericht {
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:300px;
float:left;
}
#bericht_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:360px;
height:280px;
}
#Flash {
margin-left:10px;
background-image:url(images/bg_holder.jpg);
background-repeat:repeat-x;
border: 1px solid #000000;
display:block;
padding:8px;
width:auto;
height:auto;
float:right;
}
#Flash_holder {
background-image:url(images/bg_bericht.jpg);
background-repeat:repeat;
border: 1px solid #6A5639;
display:block;
padding:8px;
width:225px;
height:100px;
}
hr.clearer {
clear: both;
visibility: hidden;
height: 0px;
line-height: 0px;
}
</style>
</head>
<body>
<div align="center">
<div id="holder">
<!--Head-->
<div id="header"> </div>
<!--/Head Start Menu-->
<div id="menu"> <a href="#">Home</a><a href="#">Informatie</a><a href="#">Archief</a> </div>
<!--/Menu Start page-->
<div id="page">
<div id="bericht">
<div id="bericht_holder">Hoi</div>
</div>
<div id="Flash">
<div id="Flash_holder">Hoi</div>
</div>
</div>
<!--/page-->
<hr class="clearer">
</div>
</div>
</body>
</html>
Gewijzigd op 01/01/1970 01:00:00 door Jan Koehoorn
ik zou niet weten van hr is.
Maar hij doet het goed nu.
Bedankt!
Die gebruik je normaal gesproken voor een horizontale lijn (horizontal rule). Je hebt een element nodig om te clearen, en ik gebruik altijd een hr. Je zou ook een div kunnen gebruiken, maar ik vind die hr semantisch correcter.
Nog een tip: dat iets het wel doet in IE en niet in FF, is een tekortkoming van FF. Ik ontwikkel al mijn CSS ten eerste voor FF, omdat die zich het beste aan de standaarden houdt. Pas als het nodig is, ga ik fixen voor IE.
Leuke lay-out :)
Dat doe ik jan :)
divs zijn veel makkelijker :)
Hmmm, ik heb zo het gevoel dat we elkaar nog wel gaan spreken ;-)
lol.... ik snap het niet hellemaal