Opnieuw heb ik een CSS gerelateerd probleempje. Ik heb een layout gemaakt (zie http://www.pruijn.com/test/) die het prima doet in Opera en Mozilla, maar waarin IE een vreemd probleem heeft. De div waarin de content staat wordt zou 100% hoog moeten zijn (dat gaat goed) en gaan scrollen wanneer de content teveel is om in de hoogte weer te geven. Bij dat laatste gaat het in IE 5.5 en 6.0 (IE 5.0 weer niet) fout. De scroll balk verdwijnt onderin
, maar wat nog vreemder is, is dat zodra je het venster iets resized, de scroll balk wél goed positioneert
. Helaas is het niet echt acceptabel om de IE gebruiker te vragen iedere reload even zijn/haar browser te resizen
.
Ik heb al van alles geprobeerd met margins en paddings en heights, maar ik heb het gevoel dat ik iets (simpels) over het hoofd zie. Graag zou ik dan ook wat hulp willen hebben om de layout ook in IE goed te laten werken. Alvast bedankt voor de suggesties!
Ik heb al van alles geprobeerd met margins en paddings en heights, maar ik heb het gevoel dat ik iets (simpels) over het hoofd zie. Graag zou ik dan ook wat hulp willen hebben om de layout ook in IE goed te laten werken. Alvast bedankt voor de suggesties!
HTML:
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
| <?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> <title>Test</title> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /> <meta name="keywords" content="" /> <meta name="description" content="" /> <link href="styles/test.css" rel="stylesheet" rev="1.0" title="stylesheet" type="text/css" media="screen" /> </head> <body> <div id="container"> <div id="testtop"> [img]"images/testtop_subpage.jpg"[/img] </div> <div id="content"> <div id="content_inner"> <p>Content</p> </div> </div> <div id="hormenu"> <ul id="hormenu_left"> <li><a href="index.html">Home</a></li> </ul> <ul id="hormenu_middle"> <li><a href="index.html" id="nowon">test1</a></li> <li><a href="index.html">test2</a></li> <li><a href="index.html">test3</a></li> <li><a href="index.html">test4</a></li> <li><a href="index.html">test5</a></li> <li><a href="index.html">test6</a></li> </ul> <ul id="hormenu_right"> <li><a href="disclaimer.html">Disclaimer</a></li> </ul> </div> <div id="left"> <ul id="vermenu"> </ul> <div id="login_intranet"> <form action="login.php" method="post"> username<input type="text" name="username" /><br /> password<input type="password" name="password" /><br /> <input type="submit" name="login" value="Login" style="width: 0px; height: 0px" /> </form> </div> </div> </div> <div id="testtop_background_left"></div> <div id="testtop_background_right"></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
| html, body { height: 100%; min-width: 767px; padding: 0px; margin: 0px; overflow: hidden; background: #003366; font-family: Verdana, Helvetica, Arial, sans-serif; font: 8pt Verdana; font-weight: normal; font-style: normal; line-height: 11pt; color: #000; scrollbar-arrow-color:#fff; scrollbar-base-color:#003366; scrollbar-face-color:#003366; scrollbar-shadow-color: #fff; scrollbar-highlight-color: #fff; scrollbar-3dlight-color: #003366; scrollbar-darkshadow-color: #003366; scrollbar-track-color: #003366 } #container { height: 100%; min-height: 100%; padding-top: 112px; padding-bottom: 0px; -moz-box-sizing: border-box; position: relative; left: 50%; margin-left: -384px; width: 767px; z-index: 1 } #content { position: relative; width: 620px; height: 100%; overflow: auto; background: #fff; z-index: 1; font: 8pt Verdana; margin: 0px 0px -112px 145px; padding: 0px 0px 90px 0px; /* padding-top padding-right padding-bottom padding-left */ voice-family: "\"}\""; /* dit is de IE5 hack, IE5 negeert alles na dit statement */ voice-family:inherit; padding: 0px 0px 0px 0px; /* padding-top padding-right padding-bottom padding-left */ } #content_inner { width: 570px; max-width: 570px; padding: 27px 0px 15px 30px; /* padding-top padding-right padding-bottom padding-left */ } |

