In de onderstaande CSS heb ik #box welke alle content bevat, hierin heb ik een achtergrond geplaatst die zoizo al (om te testen) 2000px groot is... maar als ik de site open vult hij netjes 100% uit, maar als ik daarna in lange content pagina's naar beneden scroll blijft hij niet uitvullen en eindigd de achtergrond... Hoe kan ik zorgen dat de achtergrond blijft repeaten?
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
| * {margin:0;margin:0;} /* remove default P M */ html,body{height:100%;} /* gets the 100% height, 100% min height */ body{ background: #ffffff; text-align:center; /* center IE 5 */ font-family: "verdana"; font-size: 11pt; } #box{ margin:0 auto; /* center IE 6 en de rest */ text-align:left; /* text weer naar links */ width:970px; background-image: url("images/bg.jpg"); background-repeat: repeat; background-repeat: repeat-y; } * html #box{height:100%;} /* height IE < 7 */ head+body #box{min-height:100%;} /* height IE 7 en de rest */ #box p{padding:10px 5px;} /* padding op tag in container */ |
[ Voor 26% gewijzigd door mkanon op 23-07-2009 17:17 ]
I reject your reality and substitute my own!