Ik zit er nu al even op vast, en vooral omdat ik een soort van mengvorm wil, zijn niet alle tutorials voor mijn situatie geknipt.
Dit is het ontwerp:

En deze code heb ik 'al':
Je kan het hier live bekijken. Zoals je ziet moet er nog zo'n paginarandje in de volledige hoogte van de div 'rightcontent' komen. Zit ik in de buurt, of sla ik met deze opzet de plank mis? Ik vrees nu al voor dat tekstblokje links onder...
Het is mijn eerste echte divsite, dus correcties op het gebied van redeneringen zijn ook welkom.
Dit is het ontwerp:

En deze code heb ik 'al':
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
| <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> <head> <title>Layout met 100% hoogte</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <style type="text/css"> *{ padding:0; margin:0; } p { padding: 1em 0; line-height: 1.5em; } html, body { height: 100%; /* heel belangrijk */ font: 1.0em "Trebuchet MS", Verdana, Arial, sans-serif; color: #000; background: #C63; } #container { width: 700px; margin: 0; text-align: left; position: relative; min-height: 100%; height: auto !important; /* voor moderne browsers */ height: 100%; /* voor IE */ background: #f5f5f0 url(plooi.jpg); background-position: 150px; background-repeat: repeat-y; } #leftcontent { float: left; clear: left; width: 250px; min-height: 100%; margin: 0px; padding: 0px; background-color: red; } #rightcontainer { margin-left: 250px; position: relative; min-height: 100%; height:auto !important; /* voor moderne browsers */ height:100%; /* voor IE */ background: blue; } #rightcontent { position: relative; min-height: 100%; height:auto !important; /* voor moderne browsers */ height:100%; /* voor IE */ background: blue; background: url(blad_boven.jpg); background-position: top right; background-repeat: no-repeat; } #header{ padding-left:20px; height:110px; font-size:1.3em; background: #859C0E; line-height: 60px; border-bottom: 1px solid #555; } #inhoud { padding: 0px; } #footer { position: absolute; bottom: 0; /* heel belangrijk */ margin-left: 250px; width: 450px; background-color: #f5f5f0; height: 40px; text-align: center; background-image: url(blad_onder.jpg); background-position: bottom right; background-repeat: no-repeat; } </style> </head> <body> <div id="container"> <div id="inhoud"> <div id="leftcontent"> <p>Jeez, one aesthetic quail acceptably forgot behind some frightening human. Hmm, a bee is less tardy than a incongruous grizzly bear. Umm, the worm is less excursive than this flagrant hippopotamus. Um, the tamarin is far less obedient than a subversive wallaby.</p> <p>Uh, one exulting squirrel bearishly grimaced excepting that objective crane. Gosh, the inappreciable fish sufficiently froze for this imperative terrier.</p> </div> <div id="rightcontainer"> <div id="rightcontent"> <p>Jeez, one aesthetic quail acceptably forgot behind some frightening human. Hmm, a bee is less tardy than a incongruous grizzly bear. Umm, the worm is less excursive than this flagrant hippopotamus. Um, the tamarin is far less obedient than a subversive wallaby.</p> <p>Uh, one exulting squirrel bearishly grimaced excepting that objective crane. Gosh, the inappreciable fish sufficiently froze for this imperative terrier.</p> </div> </div> </div> <div id="footer">footer</div> </div> </body> </html> |
Je kan het hier live bekijken. Zoals je ziet moet er nog zo'n paginarandje in de volledige hoogte van de div 'rightcontent' komen. Zit ik in de buurt, of sla ik met deze opzet de plank mis? Ik vrees nu al voor dat tekstblokje links onder...
Het is mijn eerste echte divsite, dus correcties op het gebied van redeneringen zijn ook welkom.


