Hallo,
Ik heb een probleem in IE (wat had je gedacht) met de hieght van een DIV. Hij moet de hoogte hebben van z'n container, maar dan aan boven en onderkant telkens 25px minder.
Ik heb het zo opgelost:
Werkt perfect in FF, maar niet in IE. Iemand een idee? Commentaar op de rest van de CSS lay-out is ook welom.
Bedankt
Full code:
Ik heb een probleem in IE (wat had je gedacht) met de hieght van een DIV. Hij moet de hoogte hebben van z'n container, maar dan aan boven en onderkant telkens 25px minder.
Ik heb het zo opgelost:
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
| <style type="text/css">
<!--
#main{
width: 764px;
position: absolute;
top: 0px;
left: 0px;
border: 1px solid #000000;
background-color: #CCCCCC;
z-index: 1;
padding-left: 228px;
padding-top: 128px;
padding-right: 8px;
padding-bottom: 128px;
}
#seperator-vertical-left{
clear: both;
width: 3px;
position: absolute;
top: 25px;
left: 100px;
bottom: 25px;
}
-->
</style>
<div id="main">
<div id="seperator-vertical-left" class="seperator"></div>
</div> |
Werkt perfect in FF, maar niet in IE. Iemand een idee? Commentaar op de rest van de CSS lay-out is ook welom.
Bedankt
Full code:
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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
| <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>CSS lay-out</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<style type="text/css">
<!--
#main{
width: 764px;
position: absolute;
top: 0px;
left: 0px;
border: 1px solid #000000;
background-color: #CCCCCC;
z-index: 1;
padding-left: 228px;
padding-top: 128px;
padding-right: 8px;
padding-bottom: 128px;
}
#menu{
width: 120px;
height: 484px;
position: absolute;
top: 93px;
left: 103px;
background-color: #BBCCEE;
z-index: 2;
}
.seperator {
background-color: #FF6600;
z-index: 3;
overflow: hidden;
}
#seperator-vertical-left{
clear: both;
width: 3px;
position: absolute;
top: 25px;
left: 100px;
bottom: 25px;
}
#seperator-horizontal-top{
width: 925px;
height: 3px;
position: absolute;
top: 120px;
left: 25px;
margin-right: 50px;
}
#seperator-horizontal-bottom{
width: 925px;
height: 3px;
position: absolute;
bottom: 120px;
left: 25px;
margin-right: 50px;
}
-->
</style>
</head>
<body>
<div id="main">
Text
<div id="menu">
Menu
</div>
<div id="seperator-vertical-left" class="seperator"></div>
<div id="seperator-horizontal-top" class="seperator"></div>
<div id="seperator-horizontal-bottom" class="seperator"></div>
</div>
</body>
</html> |