Ik ben vrij nieuw in CSS en ik heb nu een layout gemaakt maar er is een probleem. In IE krijg ik mijn layout goed te zien, maar in Firefox wordt de footer opeens veel groter en begint de footer net onder de header, zelfde plek waar menu en inhoud beginnen.
Dit is mijn CSS:
Ik kan het in firefox goed eruit laten zien door in dit:
/* Footer */
#footer {
background-color: #8FA4AB;
width: 741px;
padding: 4px;
border: 1px dashed white;
font: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
height: 590px;
toe te voegen, maar dan gaat die in IE ook 590px omlaag en zie je een hele lege plek.
Iemand enig idee wat ik fout doe?
Dit is mijn 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
| /* Container */ #container { width: 750px; background-image: url(../images/airbackground.jpg); border: 1px dashed silver; margin-left: auto; margin-right: auto; padding: 10px; } /* Body */ body{ background: #F1F2E3; font-family: verdana, arial; font-size: 12px; } /* Content Titel */ #ctitel{ font-size: 12px; font-weight: bold; border-bottom: 1px solid white; } /* Header */ #header{ background-image: url(../images/logo.jpg); width: 750px; height: 150px; } /* Menu */ #menu{ float: left; background-color: #C2CED1; padding: 2px; width: 142px; border: 1px dashed white; } /* Inhoud */ #inhoud{ float: right; background-color: #E0D943; padding: 2px; width: 590px; height: 590px; border: 1px dashed white; overflow: auto; } /* Footer */ #footer { background-color: #8FA4AB; width: 741px; padding: 4px; border: 1px dashed white; font: Verdana, Arial, Helvetica, sans-serif; font-size: 10px; font-weight: bold; } #footer a:link {color: #FFFFFF; text-decoration:none;} #footer a:visited {color: #FFFFFF; text-decoration:none;} /* Mijn Foto */ #mijnfoto { padding: 6px; border: 1px dashed silver; background-color:#FFFF66; } /* Menu Links */ .menulink { width: 142px; height: 30px; border: 0px; } /* W3 button */ #w3button { width: 88px; height: 31px; border: 0px; } |
Ik kan het in firefox goed eruit laten zien door in dit:
/* Footer */
#footer {
background-color: #8FA4AB;
width: 741px;
padding: 4px;
border: 1px dashed white;
font: Verdana, Arial, Helvetica, sans-serif;
font-size: 10px;
font-weight: bold;
}
height: 590px;
toe te voegen, maar dan gaat die in IE ook 590px omlaag en zie je een hele lege plek.
Iemand enig idee wat ik fout doe?