Ik heb het volgende probleem:
http://www.vinzzz.nl/got/
Op 1024 is het resultaat prima: het onderste groene blok sluit prima aan op de onderkant van de pagina (met 10pixels margin). Echter het probleem is dat hierin de height hard gecodeerd is. Wanneer ik dus een andere resolutie bekijk, sluit het niet meer mooi aan. Is dit mogelijk met uitsluitend css, dus geen tables, iframes, frames of javascript?
Ik heb al veel gezocht, heel veel geprobeerd, % ipv px etc, maar ik wil graag het bovenste blok niet met % definieren...ik kom er maar niet uit...
index.htm:
css stuk:
http://www.vinzzz.nl/got/
Op 1024 is het resultaat prima: het onderste groene blok sluit prima aan op de onderkant van de pagina (met 10pixels margin). Echter het probleem is dat hierin de height hard gecodeerd is. Wanneer ik dus een andere resolutie bekijk, sluit het niet meer mooi aan. Is dit mogelijk met uitsluitend css, dus geen tables, iframes, frames of javascript?
Ik heb al veel gezocht, heel veel geprobeerd, % ipv px etc, maar ik wil graag het bovenste blok niet met % definieren...ik kom er maar niet uit...
index.htm:
PHP:
1
2
3
4
5
6
7
8
9
10
11
12
| <? <div id="frame"> <div id="content1">1</div> <div id="content4"> <div id="content5"> 1<br> veel br's 1<br> </div> </div> </div> ?> |
css stuk:
code:
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
| html,body {
height: 100%;
}
body {
margin: 0px;
padding: 0px;
}
#frame {
width: 800px;
height: 100%;
margin: 0px;
padding: 0px;
position: relative;
}
#content1 {
width: 780px;
height: 190px;
margin-left: 10px;
margin-top: 10px;
position: relative;
}
#content4 {
width: 780px;
height: 375px;
margin-left: 10px;
margin-top: 10px;
margin-bottom: 10px;
position: relative;
overflow-y: scroll;
}
#content5 {
width: 753;
height: 385;
margin-left: 0px;
margin-top: 0px;
padding-bottom: 10px;
position: absolute;
} |
[ Voor 70% gewijzigd door Vinzzz243 op 27-10-2003 20:06 ]
