CSS doet het niet
ik ben begonnen aan een site waarvan ik het script het gedownload. alles is helemaal goed alleen werkt mijn CSS script niet.
Weet iemand misschien hoe dit zou komen?
Groet,
Thomas
Zonder relevante code is dat een beetje moeilijk te zeggen hè?
Rolf - op 25/06/2011 15:28:13:
Zonder relevante code is dat een beetje moeilijk te zeggen hè?
bedoel je dat ik mijn css even moet posten? in ieder geval hier is hij.
Code (php)
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
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
/* Copyright 2007 - playspellen.nl / All rights reserved */
html, body {
margin: 0px;
padding: 0px 0px 0px 0px;
background-color: #7cd9f7;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
font-family: 'Arial';
font-size: 12px;
}
img {
border: 0px;
}
a {
outline: none;
text-decoration: none;
color: white;
}
a:hover {
text-decoration: underline;
}
.invisible {
display: none;
position: absolute;
}
#container {
width: 719px;
margin: auto auto;
background-color: #ffffff;
}
/* Top */
#top {
width: 719px;
height: 242px;
background-image: url(images/top.jpg);
background-repeat: no-repeat;
float: left;
}
#header {
width: 400px;
height: 100px;
margin: 0 0 0 30px;
cursor: pointer;
}
#top #games{
margin: 40px 0 0 40px;
}
#top .gamebox {
margin: 0 0 0 20px;
width: 100px;
height: 40px;
text-align: center;
float: left;
}
#top .gamebox .shadow {
width: 92px;
height: 62px;
background-image: url(images/shadow.jpg);
text-align: left;
position: relative;
left: 2px;
top: 2px;
}
#top .gamebox h3{
margin: 0 5px 2px 0;
}
#top h3 {
color: #FEB712;
font-size: 12px;
font-weight: bold;
}
#top img {
width: 90px;
height: 60px;
position: relative;
left: -2px;
top: -2px;
}
/* Content */
#content {
margin: 0px 0px 0px 0px;
float: left;
}
* html #content {
margin: 0px 0px 0px 0px;
}
.popup {
border: 2px solid #ffffff;
width: 100px;
height: 65px;
}
.category_green {
float: left;
margin: 5px 0 0 3px;
background-color: #b1d056;
background-image: url(images/bg/green.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_blue {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/orange.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_rose {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/red2.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_yellow {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/red.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_topp {
width: 821px;
height: 45px;
margin: 0 0 0 0;
}
.category_top {
width: 175px;
height: 30px;
margin: 0 0 0 0;
}
.category_top{
cursor: pointer;
}
.category_top span {
display: none;
}
.category_content {
border-left: 0px solid #616a45;
border-right: 0px solid #616a45;
}
.category_content ul {
list-style: none;
margin: 0 0 0 0;
padding: 0 0 0 10px;
color: white;
font-size: 12px;
}
.category_content p {
margin: 0 0 5 0;
color: white;
text-align: center;
position: relative;
top: -5px;
}
.category_content .leesmeer {
text-align: right;
margin: 0 0 0 0;
padding: 0 5px 0 0;
position: relative;
top: 5px;
}
.category_content .zoekspel {
background-image: url(images/input.gif);
background-color: #ea005f;
background-repeat: no-repeat;
border: 0px solid black;
padding: 4px 0 0 6px;
width: 150px;
height: 21px;
color: #ff4892;
}
.category_content .zoekspell {
background-image: url(images/input2.jpg);
background-color: #ff679a;
background-repeat: no-repeat;
border: 0px solid black;
padding: 4px 0 0 6px;
width: 170x;
height: 21px;
color: #ff4892;
}
.category_content .send {
background-color: #FFFFFF;
background-repeat: no-repeat;
border: 1px solid black;
padding: 0px 0 0 6px;
width: 65x;
height: 21px;
color: #ff4892;
}
.category_bottom {
width: 175px;
height: 17px;
}
.category_bottomm {
width: 821px;
height: 17px;
}
/* Footer */
#footer {
float: center;
text-align: center;
}
#footer p {
color: #ffffff;
margin: 10px 0 0 10px;
font-size: 11px;
font-weight: bold;
}
/* Spelpagina */
#game_ads {
width: 719px;
background-color: #ffffff;
float: right;
margin: 0px 0px 0px 0px;
}
* html #game_ads {
margin: 0px 0px 0px 0px;
}
#game_ads_content {
clear: both;
text-align: center;
border-left: 0px solid white;
border-right: 0px solid white;
padding: 0px 0 0 0;
margin: 0 0 0 0;
}
*:first-child+html #game_ads_content {
background-position: 0px 0px;
}
#game_ads_bottom {
clear: both;
background-image: url(images/ads_bottom.jpg);
width: 800px;
height: 7px;
margin: 0 0 0 0;
}
#game_content {
width: 650px;
text-align: center;
background-color: #ffffff;
margin: 20px 0px 0px 40px;
float: left;
}
* html #game_content {
margin: 20px 0px 0px 20px;
}
#game_content p {
margin-bottom: 0px;
}
#game_content_header {
clear: both;
}
#game_content_header h1 {
color: #ff0066;
font-size: 16px;
font-family: 'Verdana';
margin-bottom: 0px;
}
#game_content_header h2 {
color: #999999;
font-size: 11px;
font-weight: normal;
margin-top: 0px;
}
#game_content_bottom a {
color: #999999;
font-size: 11px;
margin-top: 0px;
}
#game_content_textbanner{
margin: 15px 0 5px 0;
color: #000000;
font-size: 19px;
}
#game_content_include p{
color: #777777;
font-size: 11px;
}
#game_content_include input{
width: 450px;
color: #777777;
font-size: 11px;
}
#game_content_textbanner a{
color: #000000;
}
#game_content_textbanner a:hover{
color: #000000;
}
#game_topleftangle {
float: left;
background-image: url(images/topleftangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_toprightangle {
float: right;
background-image: url(images/toprightangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_bottomleftangle {
float: left;
background-image: url(images/bottomleftangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_bottomrightangle {
float: right;
background-image: url(images/bottomrightangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_content #game_bottomleftangle, #game_content #game_bottomrightangle {
position: relative;
top: 0px;
}
* html #game_bottomleftangle, * html #game_bottomrightangle {
position: relative;
top: 2px;
}
html, body {
margin: 0px;
padding: 0px 0px 0px 0px;
background-color: #7cd9f7;
background-image: url(images/bg.jpg);
background-repeat: repeat-x;
font-family: 'Arial';
font-size: 12px;
}
img {
border: 0px;
}
a {
outline: none;
text-decoration: none;
color: white;
}
a:hover {
text-decoration: underline;
}
.invisible {
display: none;
position: absolute;
}
#container {
width: 719px;
margin: auto auto;
background-color: #ffffff;
}
/* Top */
#top {
width: 719px;
height: 242px;
background-image: url(images/top.jpg);
background-repeat: no-repeat;
float: left;
}
#header {
width: 400px;
height: 100px;
margin: 0 0 0 30px;
cursor: pointer;
}
#top #games{
margin: 40px 0 0 40px;
}
#top .gamebox {
margin: 0 0 0 20px;
width: 100px;
height: 40px;
text-align: center;
float: left;
}
#top .gamebox .shadow {
width: 92px;
height: 62px;
background-image: url(images/shadow.jpg);
text-align: left;
position: relative;
left: 2px;
top: 2px;
}
#top .gamebox h3{
margin: 0 5px 2px 0;
}
#top h3 {
color: #FEB712;
font-size: 12px;
font-weight: bold;
}
#top img {
width: 90px;
height: 60px;
position: relative;
left: -2px;
top: -2px;
}
/* Content */
#content {
margin: 0px 0px 0px 0px;
float: left;
}
* html #content {
margin: 0px 0px 0px 0px;
}
.popup {
border: 2px solid #ffffff;
width: 100px;
height: 65px;
}
.category_green {
float: left;
margin: 5px 0 0 3px;
background-color: #b1d056;
background-image: url(images/bg/green.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_blue {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/orange.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_rose {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/red2.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_yellow {
float: left;
margin: 5px 0 0 3px;
background-image: url(images/bg/red.jpg);
background-repeat: repeat-y;
width: 175px;
}
.category_topp {
width: 821px;
height: 45px;
margin: 0 0 0 0;
}
.category_top {
width: 175px;
height: 30px;
margin: 0 0 0 0;
}
.category_top{
cursor: pointer;
}
.category_top span {
display: none;
}
.category_content {
border-left: 0px solid #616a45;
border-right: 0px solid #616a45;
}
.category_content ul {
list-style: none;
margin: 0 0 0 0;
padding: 0 0 0 10px;
color: white;
font-size: 12px;
}
.category_content p {
margin: 0 0 5 0;
color: white;
text-align: center;
position: relative;
top: -5px;
}
.category_content .leesmeer {
text-align: right;
margin: 0 0 0 0;
padding: 0 5px 0 0;
position: relative;
top: 5px;
}
.category_content .zoekspel {
background-image: url(images/input.gif);
background-color: #ea005f;
background-repeat: no-repeat;
border: 0px solid black;
padding: 4px 0 0 6px;
width: 150px;
height: 21px;
color: #ff4892;
}
.category_content .zoekspell {
background-image: url(images/input2.jpg);
background-color: #ff679a;
background-repeat: no-repeat;
border: 0px solid black;
padding: 4px 0 0 6px;
width: 170x;
height: 21px;
color: #ff4892;
}
.category_content .send {
background-color: #FFFFFF;
background-repeat: no-repeat;
border: 1px solid black;
padding: 0px 0 0 6px;
width: 65x;
height: 21px;
color: #ff4892;
}
.category_bottom {
width: 175px;
height: 17px;
}
.category_bottomm {
width: 821px;
height: 17px;
}
/* Footer */
#footer {
float: center;
text-align: center;
}
#footer p {
color: #ffffff;
margin: 10px 0 0 10px;
font-size: 11px;
font-weight: bold;
}
/* Spelpagina */
#game_ads {
width: 719px;
background-color: #ffffff;
float: right;
margin: 0px 0px 0px 0px;
}
* html #game_ads {
margin: 0px 0px 0px 0px;
}
#game_ads_content {
clear: both;
text-align: center;
border-left: 0px solid white;
border-right: 0px solid white;
padding: 0px 0 0 0;
margin: 0 0 0 0;
}
*:first-child+html #game_ads_content {
background-position: 0px 0px;
}
#game_ads_bottom {
clear: both;
background-image: url(images/ads_bottom.jpg);
width: 800px;
height: 7px;
margin: 0 0 0 0;
}
#game_content {
width: 650px;
text-align: center;
background-color: #ffffff;
margin: 20px 0px 0px 40px;
float: left;
}
* html #game_content {
margin: 20px 0px 0px 20px;
}
#game_content p {
margin-bottom: 0px;
}
#game_content_header {
clear: both;
}
#game_content_header h1 {
color: #ff0066;
font-size: 16px;
font-family: 'Verdana';
margin-bottom: 0px;
}
#game_content_header h2 {
color: #999999;
font-size: 11px;
font-weight: normal;
margin-top: 0px;
}
#game_content_bottom a {
color: #999999;
font-size: 11px;
margin-top: 0px;
}
#game_content_textbanner{
margin: 15px 0 5px 0;
color: #000000;
font-size: 19px;
}
#game_content_include p{
color: #777777;
font-size: 11px;
}
#game_content_include input{
width: 450px;
color: #777777;
font-size: 11px;
}
#game_content_textbanner a{
color: #000000;
}
#game_content_textbanner a:hover{
color: #000000;
}
#game_topleftangle {
float: left;
background-image: url(images/topleftangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_toprightangle {
float: right;
background-image: url(images/toprightangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_bottomleftangle {
float: left;
background-image: url(images/bottomleftangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_bottomrightangle {
float: right;
background-image: url(images/bottomrightangle.png);
background-repeat: no-repeat;
width: 13px;
height: 13px;
}
#game_content #game_bottomleftangle, #game_content #game_bottomrightangle {
position: relative;
top: 0px;
}
* html #game_bottomleftangle, * html #game_bottomrightangle {
position: relative;
top: 2px;
}
Gewijzigd op 25/06/2011 16:05:18 door thomas schepp
En daarnaast is een linkje geven beter. Haal je site ook eens door de validatoren:
http://validator.w3.org en http://jigsaw.w3.org/css-validator/
Verbeter dan de fouten die je krijgt.
- Wat gaat er precies fout
- Hoe implementeer je je css
Goh wat een duidelijk topic weer.
Inderdaad, misschien is het handig om nieuwe leden even te verplichten om de regels door te lezen voordat ze hun eerste eigen topic mogen openen ;)
Rolf - op 25/06/2011 15:59:09:
Inderdaad, misschien is het handig om nieuwe leden even te verplichten om de regels door te lezen voordat ze hun eerste eigen topic mogen openen ;)
en dat gaat helpen?!
Gewijzigd op 25/06/2011 16:01:25 door Jasper DS
nou, het probleem is dat mijn css gewoon niet werkt. ik heb me hele site behalve de css.
hoe roep je je css bestand aan?
Al gedaan wat ik zei? Heb je hem al online? Wat gaat er precies mis? Heb je wel het juiste path naar de stylesheet? Zie je de stylesheet wel als je de broncode bekijkt?
dit staat in mijn style.css en die heb ik geupload naar mijn site met filezilla.
nogmaals: hoe roep je dat bestand aan?
Ozzie PHP op 25/06/2011 16:09:43:
nogmaals: hoe roep je dat bestand aan?
ja, het spijt me maar ik weet niet wat je bedoeld.
Dit moet in de <head> van je pagina staan:
<link href="style.css" rel="stylesheet" type="text/css">
Ozzie PHP op 25/06/2011 16:13:59:
Oké. Je moet het bestand aanroepen want anders wordt het niet ingelezen en dan gebeurt er dus ook niks.
Dit moet in de <head> van je pagina staan:
<link href="style.css" rel="stylesheet" type="text/css">
Dit moet in de <head> van je pagina staan:
<link href="style.css" rel="stylesheet" type="text/css">
moet dat in de index.php??
Anders misschien eerst even een basiscursusje html volgen...