Hi,
Ben sinds kort bezig met css en loop tegen wat probleempjes op.
Ik ben bezig een kleine test website op te zetten volledig bestaand uit divs en css.
http://www.joekoemedia.nl/www.test.nl/productie
Ik heb bijvoorbeeld een knoppenbalk gemaakt, het is de bedoeling dat alle knoppen 20% breed worden. Zodra ik de laatste knop op 20% zet valt deze uit zijn parent div en schiet een regel naar onder.(Hij staat nu op 19%).
Gevoelsmatig denk ik dat het te maken heeft met de borders? Dat deze op 1 of andere manier worden meegeteld?
Misschien dat iemand me uit de brand kan helpen.
Hieronder de stylesheet die misschien het e.e.a kan verduidelijken.
Bedankt!
Ben sinds kort bezig met css en loop tegen wat probleempjes op.
Ik ben bezig een kleine test website op te zetten volledig bestaand uit divs en css.
http://www.joekoemedia.nl/www.test.nl/productie
Ik heb bijvoorbeeld een knoppenbalk gemaakt, het is de bedoeling dat alle knoppen 20% breed worden. Zodra ik de laatste knop op 20% zet valt deze uit zijn parent div en schiet een regel naar onder.(Hij staat nu op 19%).
Gevoelsmatig denk ik dat het te maken heeft met de borders? Dat deze op 1 of andere manier worden meegeteld?
Misschien dat iemand me uit de brand kan helpen.
Hieronder de stylesheet die misschien het e.e.a kan verduidelijken.
Bedankt!
Cascading Stylesheet: stylesheet.css
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
117
118
119
120
121
122
123
124
125
126
127
128
| html,body{margin:0;padding:0} body{font: 76% arial,sans-serif; text-align:left; background-color: #996699; } div#container{ position: absolute; top: 50%; left: 50%; margin-left: -300px; margin-top: -170px; border:1px solid #FF0099; width:600px; background-color:#FFCCFF; } div#content{ float:right; height:300px; width:469px; } div#flash{ float:left; width:130px; height:300px; border-right:1px solid #FF0099; } div#footer{ clear:both; width:100%; border-top:1px solid #FF0099; height:40px; } div#spacer{ height:279px; width:100%; } div#menubalk{ text-align:middle; height:20px; width:100%; border-top:1px solid #FF0099; line-height:19px; } div#knop1{ text-align:center; float:left; height:20px; width:20%; background-color:#B9CAFF; border-right:1px solid #FF0099; } div#knop2{ float:left; height:20px; width:20%; background-color:#B9CAFF; border-right:1px solid #FF0099; } div#knop3{ float:left; height:20px; width:20%; background-color:#B9CAFF; border-right:1px solid #FF0099; } div#knop4{ float:left; height:20px; width:20%; background-color:#B9CAFF; border-right:1px solid #FF0099; } div#knop5{ float:left; height:20px; width:19%; background-color:#B9CAFF; } #menubalk a:link { display:block; width:100%; height:100%; text-align:center; color: #FF0099; background-color: #B9CAFF; text-decoration: none; } #menubalk a:visited { display:block; width:100%; height:100%; color: #FF0099; background-color: #B9CAFF; text-decoration: none; text-align:center; } #menubalk a:hover { display:block; width:100%; height:100%; color: #FF0099; background-color: #FFCCFF; text-decoration: none; text-align:center; } |