kleuren wijzigen
Ik heb een probleem met dit stukje code:
Code (php)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
echo "<div class=\"titel\">Navigation</div>";
echo "<div class=\"bericht\">".$navigatie."</div>";
echo "<div class=\"titel\">";
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
echo "<tr>";
echo "<td width=\"40%\"><b>Username</b></td>";
echo "<td width=\"30%\"><b>Signed up date</b></td>";
echo "<td width=\"30%\"><b>Status</b></td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<div class=\"bericht\">";
echo "<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
?>
echo "<div class=\"titel\">Navigation</div>";
echo "<div class=\"bericht\">".$navigatie."</div>";
echo "<div class=\"titel\">";
echo "<table cellpadding=\"0\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
echo "<tr>";
echo "<td width=\"40%\"><b>Username</b></td>";
echo "<td width=\"30%\"><b>Signed up date</b></td>";
echo "<td width=\"30%\"><b>Status</b></td>";
echo "</tr>";
echo "</table>";
echo "</div>";
echo "<div class=\"bericht\">";
echo "<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" width=\"98%\">";
?>
De text Username, singed up date en status moet zwart zijn momenteel is hij blauw. Dit is de .css code:
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
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
/***Misc Tags***/
* {
margin: 0px;
padding: 0px;
color: #0066FF;
}
body {
background: #000000;
font-family: Verdana, Arial, sans-serif;
font-size: 16px;
color: #fff;}
a img{ border: 0px; }
a { text-decoration: none;}
input {
background: #333;
font-family: Verdana;
font-size: 0.7em;
padding: 3px;
color: #f4f4f4;
border: 2px solid #555;}
button {
background: #222;
font-family: Verdana;
font-size: 0.7em;
padding: 2px;
color: #f4f4f4;
border: 2px solid #444;
height: 2em;}
/**** Span class's *****/
.hidden { text-indent: -9000px;}
.br { clear: both;}
.pink { color: #0066CC;}
.small { font-size: x-small;}
.large { font-size: xx-large;}
.right { float: right;}
.left { float: left;}
.center { margin: 0 auto; text-align: center;}
/**** Site Container ****/
#container { width: 800px;
background: #222 url(images/background_img2.jpg) repeat-x;
background: #000000;
border: 2px solid #0066FF;}
/***Header***/
#logo { float: left;}
#logo h1 {
margin-top: 30px;
margin-left: 10px;
font-size: 1.6em;
letter-spacing: -0.1em;
color: #FFFFFF;
}
#search {
margin-top: 30px;
float: right;}
#search button { margin-left: 5px; padding: 0 2px 2px 2px;}
/***left Side Bar***/
#navlist { float: left; width: 200px; margin-top: 30px; margin-left: 5px;}
#navlist ul {
list-style: none;
}
#navlist li a{
display: block;
height: 25px;
width: 100px;
padding: 9px;
margin: 5px;
background: inherit;
border-right: 4px solid #444;
color: #999;
text-transform: lowercase;
font-size: 0.9em;}
#navlist li a:hover {
color: #f4f4f4;
background: #333;
border-right: 4px solid #0066FF;}
#navlist li .active {
color: #999;
background: #333;
border-right: 4px solid #444;}
/***Content***/
#content { float: right; width: 510px; margin-top: 30px; margin-left: 2px; }
#content a { color:#0066FF; font-weight: bold;}
#content a:hover {
color: #fff;
background: #0066FF;
font-weight: bold;}
#content p {line-height: 1.4em; font-size: 0.7em; margin-bottom: 20px; color: #FFFFFF;}
#content h3 {
text-indent: 20px;
color: #999;
letter-spacing: -0.1em;
margin-bottom: 4px;
}
#content h3:hover { color: #fff;}
#content .code{
color: #000000;
background: #F4f4f4 url(codenums.png) repeat-y;
border: 1px solid #ccc;
padding: 1px;
padding-left: 25px;
font-family: "courier new", helvetica, "times new roman", monospace;
font-size: 0.8em;
width: 470px;
margin: 2px auto;
white-space: nowrap;
overflow: auto;}
#content code {
color: #fff;
font-family: "courier new", helvetica, "times new roman", monospace;
background-color: #000000;
font-size: 1.2em;}
#content blockquote { color: #999; font-style: italic; text-align: center; width: 300px; margin: 10px auto;}
/***Footer***/
#footer {
text-align: center;
color: #666;
margin-top: 30px;
font-size: 0.7em;
}
#footer p { color: #666;}
#footer a { color: #666;}
#footer a:hover { color: #f4f4f4;}
form {
margin: 0px;
}
.titel {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
color: #000000;
background-color: #666666;
padding: 4px;
border-top: solid 1px #666666;
border-left: solid 1px #666666;
border-right: solid 1px #666666;
top: auto;
}
.bericht {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #999;
padding: 4px;
margin-bottom: 5px;
border-bottom: solid 1px #666666;
border-left: solid 1px #666666;
border-right: solid 1px #666666;
}
code {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14pt;
}
* {
margin: 0px;
padding: 0px;
color: #0066FF;
}
body {
background: #000000;
font-family: Verdana, Arial, sans-serif;
font-size: 16px;
color: #fff;}
a img{ border: 0px; }
a { text-decoration: none;}
input {
background: #333;
font-family: Verdana;
font-size: 0.7em;
padding: 3px;
color: #f4f4f4;
border: 2px solid #555;}
button {
background: #222;
font-family: Verdana;
font-size: 0.7em;
padding: 2px;
color: #f4f4f4;
border: 2px solid #444;
height: 2em;}
/**** Span class's *****/
.hidden { text-indent: -9000px;}
.br { clear: both;}
.pink { color: #0066CC;}
.small { font-size: x-small;}
.large { font-size: xx-large;}
.right { float: right;}
.left { float: left;}
.center { margin: 0 auto; text-align: center;}
/**** Site Container ****/
#container { width: 800px;
background: #222 url(images/background_img2.jpg) repeat-x;
background: #000000;
border: 2px solid #0066FF;}
/***Header***/
#logo { float: left;}
#logo h1 {
margin-top: 30px;
margin-left: 10px;
font-size: 1.6em;
letter-spacing: -0.1em;
color: #FFFFFF;
}
#search {
margin-top: 30px;
float: right;}
#search button { margin-left: 5px; padding: 0 2px 2px 2px;}
/***left Side Bar***/
#navlist { float: left; width: 200px; margin-top: 30px; margin-left: 5px;}
#navlist ul {
list-style: none;
}
#navlist li a{
display: block;
height: 25px;
width: 100px;
padding: 9px;
margin: 5px;
background: inherit;
border-right: 4px solid #444;
color: #999;
text-transform: lowercase;
font-size: 0.9em;}
#navlist li a:hover {
color: #f4f4f4;
background: #333;
border-right: 4px solid #0066FF;}
#navlist li .active {
color: #999;
background: #333;
border-right: 4px solid #444;}
/***Content***/
#content { float: right; width: 510px; margin-top: 30px; margin-left: 2px; }
#content a { color:#0066FF; font-weight: bold;}
#content a:hover {
color: #fff;
background: #0066FF;
font-weight: bold;}
#content p {line-height: 1.4em; font-size: 0.7em; margin-bottom: 20px; color: #FFFFFF;}
#content h3 {
text-indent: 20px;
color: #999;
letter-spacing: -0.1em;
margin-bottom: 4px;
}
#content h3:hover { color: #fff;}
#content .code{
color: #000000;
background: #F4f4f4 url(codenums.png) repeat-y;
border: 1px solid #ccc;
padding: 1px;
padding-left: 25px;
font-family: "courier new", helvetica, "times new roman", monospace;
font-size: 0.8em;
width: 470px;
margin: 2px auto;
white-space: nowrap;
overflow: auto;}
#content code {
color: #fff;
font-family: "courier new", helvetica, "times new roman", monospace;
background-color: #000000;
font-size: 1.2em;}
#content blockquote { color: #999; font-style: italic; text-align: center; width: 300px; margin: 10px auto;}
/***Footer***/
#footer {
text-align: center;
color: #666;
margin-top: 30px;
font-size: 0.7em;
}
#footer p { color: #666;}
#footer a { color: #666;}
#footer a:hover { color: #f4f4f4;}
form {
margin: 0px;
}
.titel {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
font-weight: bold;
color: #000000;
background-color: #666666;
padding: 4px;
border-top: solid 1px #666666;
border-left: solid 1px #666666;
border-right: solid 1px #666666;
top: auto;
}
.bericht {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 10pt;
color: #999;
padding: 4px;
margin-bottom: 5px;
border-bottom: solid 1px #666666;
border-left: solid 1px #666666;
border-right: solid 1px #666666;
}
code {
font-family: Verdana, Arial, Helvetica, sans-serif;
font-size: 14pt;
}
In het vervolg zelf [code][/code]-tags toevoegen.
[/modedit]
Gewijzigd op 13/01/2011 19:37:47 door Jens V
Als je die code zelf hebt gemaakt, dan weet je toch waarom de tekst blauw is?
FAQ.
Toevoeging op 13/01/2011 19:41:03:
Waarom stuur je de FAQ, heb ik iets niet goed gedaan?
mvg. Joey
Ja, je hebt iets niet goed gedaan. Maar dat is alweer opgelost :-/
Mvg. Joey
Leer CSS. Zie wat Ozzie PHP zei.
.titel td {
color:#000000;
}
En als dat niet werkt dan kan ik je met bovenstaande code die je hebt gegeven niet helpen.
En inderdaad... zelf maar eens css gaan leren want dit is toch vrij basis, een kleur aanpassen.
Gewijzigd op 13/01/2011 19:56:35 door Ozzie PHP