In een script waar ik mee bezig ben, wordt een horizontal rule in IE niet goed weergegeven. In firefox werkt het echter wel. Ook is de code XHTML strict en CSS gevalideerd. Ik heb nog eens naar de code gekeken, maar kwam er zelf niet meer uit.
De code:
XHTML:
CSS:
De code:
XHTML:
code:
1
2
3
4
5
6
7
8
9
10
11
12
13
| ...
<link rel="stylesheet" type="text/css" href="test.css" title="test" />
</head>
<body>
<div id="page">
<div class="title">Hoi</div>
<div class="date">Test</div>
<br /><hr /><br />
</div>
</body>
... |
CSS:
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
| body {
background-color:#111;
font-size:11px;
font-family:Georgia, Verdana, Arial, Helvetica, sans-serif;
letter-spacing:0.5px;
color:#eee;
padding:0px;
margin:0px;
margin-bottom:20px;
text-align:center;
}
html, body {
min-height:100.1%;
}
.title {
font-weight:bold;
font-size:12px;
letter-spacing:1px;
color:#eee;
margin:0px;
margin-bottom:5px;
margin-left:15px;
padding:0px;
text-align:left;
float:left;
}
.date {
font-style:italic;
font-size:10px;
color:#eee;
margin:0px;
margin-bottom:5px;
margin-right:15px;
padding:0px;
text-align:right;
float:right;
}
#page {
background:#111;
padding:10px;
text-align:left;
width:65%;
margin:0px auto;
line-height:16px;
}
div.page{
white-space:nowrap;
}
div.div.page{
display:inline;
} |