ik wil 3 div's boven elkaar hebben, 1e is 10% hoog, 2e is 80% en de 3e ook weer 10%. In de 2e div komt alle tekst e.d. te staan dus die moet ook scrollbaar zijn. zoals ik het nu gemaakt hebt werkt het prima in FF, maar waarom werkt het niet in IE? heeft er iemand tips (bepaalde IE (only) hacks ofzo?)
voorbeeld is hier te bekijken.
2 screenshots: IE 6 en FF1.5
Mijn stylesheet en mn html/php:
voorbeeld is hier te bekijken.
2 screenshots: IE 6 en FF1.5
Mijn stylesheet en mn html/php:
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
| body { background-image: url(images/back.jpg); background-repeat: no-repeat; background-attachment: fixed; color: #FFF; } .main { position: absolute; left: 10%; right: 10%; top: 10%; bottom: 10%; overflow: auto; text-align: right; } .top { position: absolute; left: 10%; top: 0%; right: 10%; } .bottom { position: absolute; left: 10%; right: 10%; bottom: 0%; } |
PHP:
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
| <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" /> <link rel="stylesheet" href="style.css"> <? if(isset($HTTP_COOKIE_VARS["users_resolution"])) $screen_res = $HTTP_COOKIE_VARS["users_resolution"]; else //means cookie is not found set it using Javascript { ?> <script language="javascript"> <!-- writeCookie(); function writeCookie() { var today = new Date(); var the_date = new Date("December 31, 2023"); var the_cookie_date = the_date.toGMTString(); var the_cookie = "users_resolution="+ screen.width +"x"+ screen.height; var the_cookie = the_cookie + ";expires=" + the_cookie_date; document,cookie=the_cookie location = 'test3.php'; } //--> </script> <? } ?> <title>Untitled Document <?php echo "$screen_res";?></title> <script type="text/javascript" src="http://testserver.qu63.nl/blog2/scripts/countdown.js" defer="defer"></script> </head> <body> <div class="top"><img src="top.gif" alt="Sven in Amersfoort"></div> <div class="main"> <?php for ($a = 0; $a<=9; $a++){ for ($b = 0; $b<=9; $b++) print "<br />".$b; } ?> </div> <div class="bottom"><h1 align="center">nog <span id="countdown1">2006-9-24 20:00:00 GMT+02:00</span></h1></div> </body> </html> |
[ Voor 13% gewijzigd door Verwijderd op 25-08-2006 15:21 ]