Läääp
Hallöchen.
Ich habe eben einen CSS-Style für meinen VRH gecodet und habe wohl irgendeinen Fehler bei den Tabellen gemacht, denn die Tabellen, in denen ich den Code dann verwende erscheinen nicht. Es wäre lieb wenn jemand mal drüberschauen würde.
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:
|
A:link { color: #000000 ; text-decoration: none; }
A:visited { color: #000000 ; text-decoration: none; }
A:hover { color: #7e8d9b ; text-decoration: none; border-bottom:1 dotted; border-color:#000000; }
A:active { color: #7e8d9b ; text-decoration: none; }
body { background-color: ; color: #000000;
font-family: Arial;
font-size: 12px;
text-align : justified;
background-attachment: fixed;
scrollbar-face-color: #bcc6cf;
scrollbar-highlight-color: #000000;
scrollbar-3dlight-color: #ffffff;
scrollbar-darkshadow-color: white;
scrollbar-shadow-color: #ffffff;
scrollbar-arrow-color: white;
scrollbar-track-color: #7e8d9b; }
table, th, td { border: 1px solid #040;
border-collapse: collapse;
font-family: Arial;
font-size: 1em;
text-align: center;
padding: 5px; }
th { background-color: #ffffff; color: #ffffff; border: 0px ; }
.ueberschrift td { background-color: #7e8d9b; }
.unterschrift td { background-color: #bcc6cf; }
.normal td { background-color: #ffffff; } |
|
Hier noch ein Tabellencode-Beispiel dazu.
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 style="text-align: center;">
<table style="width: 350px; text-align: left; margin-left: auto; margin-right: auto;" border="0" cellpadding="2" cellspacing="2">
<tbody>
<tr >
<ueberschrift td>
<span style="font-weight: bold;">Überschrift</span>
</td>
</tr>
<tr>
<normal td style="text-align: center;">link</td>
<normal td style="text-align: center;">link</td>
</tr>
<tr>
<normal td style="text-align: center;">link</td>
<normal td style="text-align: center;">link</td>
</tr>
<tr>
<normal td style="text-align: center;">link</td>
<normal td style="text-align: center;">link</td>
</tr>
<tr>
<normal td style="text-align: center;">link</td>
<normal td style="text-align: center;">link</td>
</tr>
</tbody>
</table>
</div> |
|
LG
Feather
Hallo Läääp,
soweit ich weiß, müsstest du das mit class definieren.
Also z.B. statt:
code: |
1:
|
<normal td style="text-align: center;">link</td> |
|
so:
code: |
1:
|
<td class="normal td">link</td> |
|
Du kannst es ja mal so ausprobieren
Läääp
Danke
Nun ist die Tabelle zwar da, aber die Hntergrundfarbe bei "ueberschrift" nicht. :/
Feather
Hallo
Hast du dort denn auch alles entsprechend definiert? Eventuell dort auch statt "td" "th" schreiben
Läääp
funktionier leider auch nicht. Dann wird die komplette Zeile weiß.
Feather
Ja, weil du es ja so in dem CSS-Code definiert hast
Itoe
Zitat: |
Original von Läääp
table, th, td { border: 1px solid #040;
LG |
Soweit ich weiß ist bei der Farbangabe hier zumindest der Code Fehlerhaft müssen eigentlich immer 6 Zeichen sein
Feather
Itoe, du hast recht. Das habe ich glatt übersehen.
Läääp, wenn du einfach bei dem "th" die Hintergrundfarbe änderst, sollte es ja richtig angezeigt werden, oder?
Itoe
Zitat: |
Original von Läääp
th { background-color: #ffffff; color: #ffffff; border: 0px ; }
LG |
Den Teil meint Feather ^^ Du hast im Prinzip weiße Schrift auf weißem Papier ^^