Ik heb een sticky footer gemaakt in CSS, dit werkt perfect bij andere sites die ik heb gemaakt.
Nu heb ik een andere site waar het niet werkt, enigste verschil is dat de container hier een background image heeft die naar beneden repeat
CSS :
Ik zie meerdere oplossingen in Google (clear floats), maar dit werkt niet ...
Nu heb ik een andere site waar het niet werkt, enigste verschil is dat de container hier een background image heeft die naar beneden repeat
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
| html { height: 100%; } body { margin: 0; padding: 0; background-image: url(../images/background_repeater.png); background-position: 0px 0px; background-repeat: repeat-x; background-color: #ebecec; color: #52463f; height: 100%; } .container { position: relative; width: 1000px; margin: 0 auto; height: auto !important; /* ie6 ignores !important, so this will be overridden below */ min-height: 100%; /* ie6 ignores min-height completely */ height: 100%; background-image: url(../images/background_container_repeater.png); background-position: 0px 0px; background-repeat: repeat-y; margin-bottom: -66px; /* hoogte footer */ } .footer { width: 100%; height: 66px; clear: both; background-color: #dadbdb; } |
HTML:
1
2
3
4
5
6
7
8
9
| <div class="container"> <div class="header"> IETS[s][/s] </div> <div> Content </div> </div> <div class="footer"></div> |
Ik zie meerdere oplossingen in Google (clear floats), maar dit werkt niet ...
[ Voor 6% gewijzigd door The.Terminator op 02-12-2011 11:01 ]