Ik hoop dat jullie mij kunnen helpen. Ik ben bezig een website te bouwen opgebouwd uit divs en met CSS. Ik kom ergens echter niet uit.
De fout is als volgt: in mijn content heb ik 2 soorten content: 1 over de hele breedte, en 1 in twee kolommen. Deze worden als kleine tabellen weergegeven dmv een border, zoals hieronder:

Nu wil ik onder de gesplitste content weer door kunnen gaan met de bovenste content, alleen dan doet hij dus moeilijk, zie hieronder:

Hij overlapt dus de headers van de split content.. Het rare is dat als ik tussen de divs een stukje tekst zet hij het wel doet, zie hieronder:

de html code van dat deel is als volgt:
en de css is als volgt:
Iemand ideeen over hoe dit op te lossen is of waar het door komt? Ik heb overal in de margins en paddings gezocht maar ik kan het echt niet vinden. Het lijkt erop alsof hij 'denkt' dat de tweede content_header aan de split_content_header geplakt moet worden ofzo
De fout is als volgt: in mijn content heb ik 2 soorten content: 1 over de hele breedte, en 1 in twee kolommen. Deze worden als kleine tabellen weergegeven dmv een border, zoals hieronder:

Nu wil ik onder de gesplitste content weer door kunnen gaan met de bovenste content, alleen dan doet hij dus moeilijk, zie hieronder:

Hij overlapt dus de headers van de split content.. Het rare is dat als ik tussen de divs een stukje tekst zet hij het wel doet, zie hieronder:

de html code van dat deel is als volgt:
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
| <div id="content"> <div id="content_header"> Content Header </div> <div class="content_text"> There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. </div> <div id="content_split"> <div class="split_left_content_header"> TEST en wat testen </div> <div class="split_right_content_header"> Dit is dan rechts </div> <div class="split_left_content_text"> En de tekst in links tralalala </div> <div class="splitleft_right_content_text"> En de tekst rechts </div> </div> <div id="content_header"> Content Header </div> <div class="content_text"> There are many variations of passages of Lorem Ipsum available, but the majority have suffered alteration in some form, by injected humour, or randomised words which don't look even slightly believable. If you are going to use a passage of Lorem Ipsum, you need to be sure there isn't anything embarrassing hidden in the middle of text. All the Lorem Ipsum generators on the Internet tend to repeat predefined chunks as necessary, making this the first true generator on the Internet. </div> |
en de css is als volgt:
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
| #content { float: left; width: 543px; margin: 4px 0 4px 3px; } #content_header { display: block; background: #A9C0CE url(../img/corner.gif) no-repeat top right; padding: 4px 3px 4px 8px; color: #FFFFFF; font: bold 1.0em Tahoma, Arial, Sans-Serif; } .content_text { padding: 4px 3px 4px 8px; border-left: 1px solid #A9C0CE; border-right: 1px solid #A9C0CE; border-bottom: 1px solid #A9C0CE; margin-bottom: 8px; } #content_split { display:block; } .split_left_content_header { float: left; width: 257px; background: #A9C0CE url(../img/corner.gif) no-repeat top right; padding: 4px 3px 4px 8px; color: #FFFFFF; font: bold 1.0em Tahoma, Arial, Sans-Serif; } .split_left_content_text { float: left; width: 255px; padding: 4px 3px 4px 8px; border-left: 1px solid #A9C0CE; border-right: 1px solid #A9C0CE; border-bottom: 1px solid #A9C0CE; margin-bottom: 8px; } .split_right_content_header { float: right; width: 257px; background: #A9C0CE url(../img/corner.gif) no-repeat top right; padding: 4px 3px 4px 8px; color: #FFFFFF; font: bold 1.0em Tahoma, Arial, Sans-Serif; } .splitleft_right_content_text { display:block; float: right; width: 255px; padding: 4px 3px 4px 8px; border-left: 1px solid #A9C0CE; border-right: 1px solid #A9C0CE; border-bottom: 1px solid #A9C0CE; margin-bottom: 8px; } |
Iemand ideeen over hoe dit op te lossen is of waar het door komt? Ik heb overal in de margins en paddings gezocht maar ik kan het echt niet vinden. Het lijkt erop alsof hij 'denkt' dat de tweede content_header aan de split_content_header geplakt moet worden ofzo
[ Voor 5% gewijzigd door Verwijderd op 18-04-2006 02:24 ]