Ik heb een pagina die draait op de volgende CSS:
Ik heb 2 HTML pagina's:
http://members.home.nl/leokennis/mijnogen/index.html
http://members.home.nl/leokennis/mijnogen/index2.html
Het enige verschil tussen de 2 is dat er in index2 onderaan "lala" staat.
In IE en FireFox zien de 2 pagina's er dan ook hetzelfde uit, op de "lala" na dan
In Opera echter, is alleeen index2.html goed. In index1.html, is de DIV "content" (waar de tekst in staat), 7px naar beneden geschoten.
Het probleem is namelijk, dat dit gebeurd als de laatste tag die je binnen een DIV gebruikt "H2" is en de pagina daarna ophoud. En dus niet als je er nog "lala" achter typt.
Nu heb ik bij H2 de bottom-margin op 7px gezet, wat die 7px verschuiving verklaard. Echter, dit zou toch niet moeten gebeuren? Iemand een oplossing? Want het staat natuurlijk nogal stom als je steeds "lala" onder iedere pagina moet typen
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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
| html { overflow: hidden; } body { text-align: center; background-color: #99aaaa; margin: 0px; padding: 0px; overflow: hidden; } #container { margin-left: auto; margin-right: auto; width: 500px; text-align:left; } #header { width: 500px; height:100px; background-image: url("header.jpg"); background-position: center; margin: 0 0 0 0; padding: 0 0 0 0; } #contentcontainer { width: 360px; height: 400px; background-color: #ffffff; margin: 0 0 0 0; padding: 0 0 0 0; position: relative; left: 70px; } #footer { width:500px; height: 79px; background-image: url("footer.jpg"); background-position: center; margin: 0 0 0 0; padding: 0 0 0 0; } #shadowleft { width: 70px; height: 400px; background-image: url("shadow_left.jpg"); margin: 0 0 0 0; padding: 0 0 0 0; position: relative; top: -479px; } #shadowright { width: 70px; height: 400px; background-image: url("shadow_right.jpg"); margin: 0 0 0 0; padding: 0 0 0 0; position: relative; top: -879px; left: 430px; } #content { width: 332px; height: 390px; background-color: #ffffff; margin: 0 0 0 0; padding-left: 14px; padding-right: 14px; padding-top: 10px; padding-bottom: 0px; font-family: Georgia; font-size: 14px; color: #3c3c3c; overflow: hidden; } h1 { font-family: Century Gothic; font-size: 24px; margin-left: 0; margin-top: 10px; margin-bottom: 5px; color: #dd0000; } h2 { font-family: Arial; font-size: 9px; text-align: right; margin-left: 0; margin-top: 3px; margin-bottom: 7px; color: #b8b8b8; } p { margin-left: 10px; margin-top: 0; margin-bottom: 0; margin-right: 0; } |
Ik heb 2 HTML pagina's:
http://members.home.nl/leokennis/mijnogen/index.html
http://members.home.nl/leokennis/mijnogen/index2.html
Het enige verschil tussen de 2 is dat er in index2 onderaan "lala" staat.
In IE en FireFox zien de 2 pagina's er dan ook hetzelfde uit, op de "lala" na dan
In Opera echter, is alleeen index2.html goed. In index1.html, is de DIV "content" (waar de tekst in staat), 7px naar beneden geschoten.
Het probleem is namelijk, dat dit gebeurd als de laatste tag die je binnen een DIV gebruikt "H2" is en de pagina daarna ophoud. En dus niet als je er nog "lala" achter typt.
Nu heb ik bij H2 de bottom-margin op 7px gezet, wat die 7px verschuiving verklaard. Echter, dit zou toch niet moeten gebeuren? Iemand een oplossing? Want het staat natuurlijk nogal stom als je steeds "lala" onder iedere pagina moet typen
leoaq.fm // Jeune Loop