Hi mensen,
ik ben eens aan het kijken naar definition lists.
Lijkt me een heel simpel dingetje om te stylen maar ik word helemaal kriegel van het volgende probleem.
Ik heb zowel de hoogte van de dl, dt als dd ingesteld op 100px;
Maar toch wordt de hoogte gerenderd op 102px;
Dat komt door blijkbaar door het foto'tje maar ook die staat op 100px!
Dit probleem doet zich echter alleen voor in IE, in FF doet ie t prima.
zie http://www.raketje.com/tweakers/test.php
Heeft iemand enig idee?
Thanks
ik ben eens aan het kijken naar definition lists.
Lijkt me een heel simpel dingetje om te stylen maar ik word helemaal kriegel van het volgende probleem.
Ik heb zowel de hoogte van de dl, dt als dd ingesteld op 100px;
Maar toch wordt de hoogte gerenderd op 102px;
Dat komt door blijkbaar door het foto'tje maar ook die staat op 100px!
Dit probleem doet zich echter alleen voor in IE, in FF doet ie t prima.
zie http://www.raketje.com/tweakers/test.php
Heeft iemand enig idee?
Thanks
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
| body { margin: 0px 0px 0px 0px; padding: 40px 0px 0px 40px; width: 500px; font: 90% arial, sans-serif; } dl { width: 500px; height:100px; margin: 40px 0px 0px 00px; padding: 0px 0px 0px 0px; border:0px; } dt { width: 200px; height:100px; float: left; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; font-weight: bold; background-color:#FF0000; border:0px; } /* commented backslash hack for mac-ie5 \*/ dt { clear: both; } /* end hack */ dd { float: left; width: 300px; height:100px; margin: 0px 0px 0px 0px; padding: 0px 0px 0px 0px; background-color:#00FF00; border:0px; } |
HTML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
| <dl> <dt><img src="afbeelding.gif" height="100px" border="0"></dt> <dd>Nisl ut aliquip ex ea commodo consequat</dd> </dl> <dl> <dt><img src="afbeelding.gif" height="100px" border="0"></dt> <dd>Nisl ut aliquip ex ea commodo consequat</dd> </dl> <dl> <dt><img src="afbeelding.gif" height="100px" border="0"></dt> <dd>Nisl ut aliquip ex ea commodo consequat</dd> </dl> |
[ Voor 13% gewijzigd door Verwijderd op 26-01-2008 18:29 ]