Ik heb het volgende, vrij simpele, probleem waar ik maar niet uit kom. Ik heb overal gezocht naar een antwoord, maar wat ik ook probeer het lijkt niet te werken. Een deel van mijn xhtml code was nog in html tables en dat wilde ik veranderen, dat is voor het grootste gedeelte gelukt, behalve een stukje waar twee columns naast elkaar moeten komen te staan. Dit lukt maar niet, wat ik ook probeer. De meest rechtse column blijft maar naar links wijken of onder de eerste column. Kan iemand mij helpen?
Een screenshot van het gedeelte rechts van de site (de zwarte border is van de container).

De xhtml code:
De CSS code:
Firebug geeft als resultaat een zwarte streep door de float: right code.
Een tweede probleem waar ik ook al uren mee aan het worstelen ben is dat er een witte lijn tussen het menu en de content daaronder blijft staan. Die krijg ik maar niet weg, behalve als ik dit stuk (dat ik nodig heb) weg haal:
Firebug zegt hier niks van...
Een screenshot daarvan:

Ik heb naar het plaatje gekeken, daar zit geen whitespace in en ik heb de height aangepast zonder enig resultaat.
Een screenshot van het gedeelte rechts van de site (de zwarte border is van de container).

De xhtml code:
code:
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 class="floatRight clear">www.cguide.net </div>
<div id="search">
<form action="" method="get" id="searchform">
<div class="containingbox">
<div class="top_floatRight">
<input type="text" name="word" size="35" />
</div>
<div class="top_floatRight">
<img src="resources/images/btn-go.jpg" />
</div>
</form>
</div></div>
<div id="logo"><a href="#"><img src="resources/images/logo.png" width="133" height="135" alt="The Computer Guide" /></a></div>
<div id="topmenu">
<ul>
<li class="$tablestyle1"><a href="?page=index"><img alt="Home" src="resources/images/menu-Home.png" width="44" height="14" /></a></li>
<li class="$tablestyle2" align="Left"><a href="?page=processes"><img alt="Home" src="resources/images/menu-processes.png" width="76" height="14" /></a></li>
<li class="$tablestyle3"><a href="?page=drivers"><img alt="Home" src="resources/images/menu-drivers.png" width="54" height="14" /></a></li>
<li class="$tablestyle4"><a href="?page=dll"><img alt="Home" src="resources/images/menu-dllFiles.png" width="68" height="14" /></a></li>
<li class="$tablestyle5"><a href="?page=viruses"><img alt="Home" src="resources/images/menu-viruses.png" width="63" height="14" /></a></li>
<li class="$tablestyle6" style="text-align:center"><a href="?page=manuals"><img src="resources/images/menu-manuals.png" width="81" height="14" alt="manuals" /></a></li>
</ul>
</div>
</div>
<div style="padding-left:25px;"><img src="resources/images/menu-separator.jpg" width="940" height="15" /></div> |
De CSS code:
code:
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
| * {
margin: 0px;
padding: 0px;
}
body {
font-family: Arial, Helvetica, sans-serif;
font-size: 12px;
color: #000;
background-color: #FFF;
text-align: center;
background-image: url(resources/images/main_bg.jpg);
background-repeat: repeat-y;
background-position: center;
}
.cguide
{
padding-right:10px;
font-family:Verdana, Geneva, sans-serif;
font-size:11px;
font-weight:bold;
color:#000;
}
a img {
border-top-width: 0px;
border-right-width: 0px;
border-bottom-width: 0px;
border-left-width: 0px;
}
ul {
list-style-type: none;
}
#wrapper {
text-align: left;
width: 990px;
background-image: url(../images/bg-wrapper.jpg);
background-repeat: repeat-y;
background-position: left top;
margin-right: auto;
margin-left: auto;
}
#header {
background-image: url(../images/bg-header.jpg);
background-repeat: repeat-x;
background-position: left top;
height: 180px;
border-bottom-width: 30px;
border-bottom-style: solid;
border-bottom-color: #569ED6;
width: 940px;
margin-top: 0px;
margin-right: 25px;
margin-bottom: 0px;
margin-left: 25px;
}
#logo {
float: left;
height: 102px;
width: 133px;
padding-top: 15px;
padding-left: 10px;
padding-right: 15px;
}
.alignLeft {
text-align: left !important;
}
#search {
float: right;
height: 35px;
clear: right;
width: 263px;
font-size: 14px;
line-height: 40px;
margin-right: 5px;
margin-top: 3px;
}
#search input {
background-image: url(resources/images/bg_serch.jpg);
background-repeat: no-repeat;
background-position: left top;
border: 2px solid #B5CAD8;
height: 30px;
margin-right: 0px;
float: right;
}
#topmenu {
float: left;
margin-top: 8.7%;
}
#topmenu li {
float: left;
}
.clear {
clear: both;
}
.clearLeft {
clear: left;
}
.clearRight {
clear: right;
}
.floatLeft {
float: left;
}
.floatRight {
float: right;
}
.containingbox
{
width: 200px;
height: 40px;
border: 1px solid #000;
}
.top_floatRight {
float: right;
width: 100px;
height: 40px;
}
.tabStyleEnabledLast {
background-image: url(../images/bg-enabledTabLast.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 160px;
padding-top: 16px;
text-align: center;
}
.tabStyleEnabled1 {
background-image: url(../images/bg-enabledTab1.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 160px;
padding-top: 16px;
text-align: center;
}
.tabStyleDisabled1 {
background-image: url(../images/bg-disabledTab1.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 117px;
padding-top: 18px;
text-align: center;
}
.tabStyleDisabled2 {
background-image: url(../images/bg-disabledTab2.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 126px;
padding-top: 18px;
text-align: center;
}
.tabStyleDisabled3 {
background-image: url(../images/bg-disabledTab3.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 151px;
padding-top: 18px;
text-align: center;
}
.tabStyleDisabled4 {
background-image: url(../images/bg-disabledTab4.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 132px;
padding-top: 18px;
text-align: center;
}
.tabStyleDisabled5 {
background-image: url(../images/bg-disabledTab5.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 121px;
padding-top: 18px;
text-align: center;
}
.tabStyleDisabled6 {
background-image: url(../images/bg-disabledTab6.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 31px;
width: 125px;
padding-top: 18px;
text-align: center;
}
#content {
width: 990px;
background-repeat: repeat-y;
}
.roundBox {
background-image: url(../images/bg-RoundBoxBottom.jpg);
background-repeat: no-repeat;
background-position: left bottom;
height: 440px;
height:auto !important;
min-height:440px;
width: 736px;
text-align: left;
margin-top: 0px;
margin-right: 13px;
margin-bottom: 0px;
margin-left: 13px;
padding-bottom: 13px;
float: right;
background-color: #FFF;
}
.roundBox .topRound {
background-image: url(../images/bg-RoundBoxTop.jpg);
background-repeat: no-repeat;
background-position: left top;
height: 440px;
height:auto !important;
min-height:440;
padding-top: 5px;
padding-right: 50px;
padding-bottom: 5px;
padding-left: 50px;
}
#menuLeft {
width: 200px;
float: left;
margin-left: 3px;
}
#menuLeft ul {
background-image: url(../images/bg-leftMenuul.jpg);
background-repeat: repeat-y;
background-position: right top;
}
#menuLeft li a:link, #menuLeft li a:active, #menuLeft li a:visited {
display:block;
background-image: url(../images/mnu-leftDisabled.jpg);
background-repeat: no-repeat;
background-position: -3px top;
background-color:#FFF;
height: 32px;
width: 200px;
float: none;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14px;
font-weight: bold;
color: #FFFFFF;
text-decoration: none;
text-indent: 45px;
line-height:32px;
font-style:italic;
}
#menuLeft li a:hover {
display:block;
background-image: url(../images/mnu-leftEnabled.jpg);
background-repeat: no-repeat;
background-position:-3px top;
height: 32px;
width: 200px;
font-family: Verdana, Arial, Helvetica, sans-serif;
font-weight:bold;
font-size: 14px;
color: #3a6676;
text-indent: 45px;
line-height:32px;
font-style:italic;
}#contentArea {
background-color: #D1E2E8;
padding-top: 0px;
padding-right: 25px;
padding-bottom: 0px;
padding-left: 14px;
background-image: url(../images/fix-menuBg.jpg);
background-repeat: repeat-y;
background-position: 0px top;
}
#adbox {
padding-left: 36px;
text-align: center;
width: 154px;
}
#adbox div {
}
.roundBoxbt {
background-image: url(../images/bg-RoundBoxBottom.jpg);
background-repeat: no-repeat;
background-position: left bottom;
width: 736px;
text-align: left;
margin-top: 0px;
margin-right: 13px;
margin-bottom: 0px;
margin-left: 13px;
padding-bottom: 13px;
float: right;
background-color: #FFF;
}
.roundBoxbt .topRoundbt {
background-image: url(../images/bg-RoundBoxTop.jpg);
background-repeat: no-repeat;
background-position: left top;
padding-top: 5px;
padding-right: 10px;
padding-bottom: 5px;
padding-left: 50px;
}
/* Tableless stuff */
.tableless{
padding: 5px;
}
div.fieldwrapper{ /*field row DIV (includes two columns- Styled label column and 'thefield' column)*/
width: 550px; /*width of rows*/
overflow: hidden;
padding: 5px 0;
}
div.topwrapper{ /* Top Wrapper */
width: 100%; /*width of rows*/
/*overflow: hidden;
padding: 5px 0;*/
}
div.topwrapper label.logo{ /* Top Wrapper:logo */
width: 17%; /*width of rows*/
/*overflow: hidden;
padding: 5px 0;*/
}
div.topwrapper label.cgtext { /* Top Wrapper:text */
height: 32px; /*width of rows*/
/*overflow: hidden;
padding: 5px 0;*/
}
div.topwrapper label.search { /* Top Wrapper:search */
height: 101px; /*height of rows*/
width: 78%;
/*overflow: hidden;
padding: 5px 0;*/
}
div.fieldwrapper label.styled{ /* label elements that should be styled (left column within fieldwrapper DIV) */
float: left;
width: 150px; /*width of label (left column)*/
text-transform: lowercase;
border-bottom: 1px solid navy;
margin-right: 15px; /*spacing with right column*/
}
div.fieldwrapper label.styledH{ /* HEADER! label elements that should be styled (left column within fieldwrapper DIV) */
float: left;
width: 150px; /*width of label (left column)*/
text-transform: uppercase;
font-weight: bold;
background: navy;
color: #FFF;
border-bottom: 1px solid black;
margin-right: 15px; /*spacing with right column*/
}
div.fieldwrapper div.thefield{ /* DIV that wraps around the actual form fields (right column within fieldwrapper DIV) */
float: left;
margin-bottom: 10px; /* space following the field */
}
div.fieldwrapper div.thefield input[type="text"]{ /* style for INPUT type="text" fields. Has no effect in IE7 or below! */
width: 250px;
}
div.fieldwrapper div.thefield textarea{ /* style for TEXTAREA fields. */
width: 300px;
height: 150px;
}
div.buttonsdiv{ /*div that wraps around the submit/reset buttons*/
margin-top: 5px; /*space above buttonsdiv*/
}
div.buttonsdiv input{ /* style for INPUT fields within 'buttonsdiv'. Assumed to be form buttons. */
width: 80px;
background: #e1dfe0;
} |
Firebug geeft als resultaat een zwarte streep door de float: right code.
Een tweede probleem waar ik ook al uren mee aan het worstelen ben is dat er een witte lijn tussen het menu en de content daaronder blijft staan. Die krijg ik maar niet weg, behalve als ik dit stuk (dat ik nodig heb) weg haal:
code:
1
| <div style="padding-left:25px;"><img src="resources/images/menu-separator.jpg" width="940" height="15" /></div> |
Firebug zegt hier niks van...
Een screenshot daarvan:

Ik heb naar het plaatje gekeken, daar zit geen whitespace in en ik heb de height aangepast zonder enig resultaat.
[ Voor 100% gewijzigd door Verwijderd op 10-01-2009 14:36 ]