In firefox komt de div met class="footer" links van de div met class="main_left". Dit is niet wenselijk en zo staat het er volgens mij ook niet. IE laat de div met footer daadwerkelijk onderaan de pagina zien. Is dit een bug in FF of zie ik iets over het hoofd. In ieder geval zoek ik dus een oplossing.
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3c.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en-EN"> <head> <title>title</title> <link type="text/css" rel="stylesheet" href="css/index.css" /> </head> <body> <div class="container"> <div class="header"></div> <div class="main"> <div class="main_left"></div> <div class="main_right"> Een stukje tekst </div> </div> <div class="footer">footer</div> </div> </body> </html> |
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
| body { font-family: Arial, Helvetica, sans-serif; font-size: 11px; test-align: center; color: #000000; } div.container { width:752px; padding:0px; margin: 0 auto; text-align: left } div.header { width:752px; height:100px; padding:0px; margin: 0px; border: 0px; background-image: url(../img/header.gif); } div.main { width:752px; padding:0px; margin: 0px; border: 0px; } div.main_left { float: left; width:230px; height:345px; background-image: url(../img/strawberry.jpg); padding:0px; margin: 0px; border: 0px; } div.main_right { position: relative; padding:0px; margin: 0px; border: 0px; } div.footer { width:752px; padding:0px; margin-top: 20px; background-color: #cc0000; color:#ffd5d6; font-family: Arial, Helvetica, sans-serif; font-size: 11px; text-align: center; } |