Ik ben bezig met een opzet voor een website, met een 3 kolommen layout. Nu is het de bedoeling dat alle 3 de kolommen altijd even lang zijn, afhankelijk vanaf hoe lang de middelste kolom is. De linker en rechter moeten mee gaan in de hoogte dus. Dit is wat ik tot nu toe heb in mijn css. Het gaat dus om de div #main_left en #main_right. Wat doe ik fout? Ik heb al een background ingesteld die zich zelf repeat binnen de #main+wrapper div.
Oja fluid divs vind ik niet mooi... Dus als het kan een oplossing zonder dat.
(Zoals je ziet wil ik binnen deze divs nog andere divs onderverdelen maar dat is nu niet van belang..)
css..
Oja fluid divs vind ik niet mooi... Dus als het kan een oplossing zonder dat.
(Zoals je ziet wil ik binnen deze divs nog andere divs onderverdelen maar dat is nu niet van belang..)
css..
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
| body { background-image: url(../images/layout/main/main_background.jpg); background-repeat: repeat; font-family: Verdana, Arial, Sans-Serif; margin: 0px auto; text-align: center; } DIV { text-align: left; } #main_bottom { clear: both; background-color:Orange; height: 100px; } #main_content { background-color: Olive; width: 790px; } #main_left { float: left; width: 100px; } #main_left_bottom { background-image: url(../images/layout/main/main_left_bottom.jpg); background-repeat: no-repeat; height: 206px; vertical-align: bottom; width: 100px; } #main_left_gradient { height: 100%; width: 100px; } #main_left_top { background-image: url(../images/layout/main/main_left_top.jpg); background-repeat: no-repeat; height: 417px; vertical-align: top; width: 100px; } #main_menu { float: left; height: 100px; width: 790px; } #main_middle { float: left; height: 100%; width: 790px; } #main_right { background-color: Yellow; float: right; height: 100%; width: 100px; } #main_top { background-image: url(../images/layout/main/main_top.jpg); background-repeat: no-repeat; height: 118px; } #main_wrapper { background-image: url(../images/layout/main/main_back.jpg); background-repeat: repeat; height: 100%; overflow: hidden; padding-bottom: 0px; padding-left: 3px; padding-right: 3px; padding-top: 0px; width: 990px; } |
