wo is der fehler ?

Status
Nicht offen für weitere Antworten.

schneeWITCHen

Mitglied
Code:
.navi:link {  color: #862F2F; text-decoration: none; cursor: crosshair; }
.navi:visited {  color: #862F2F; text-decoration: none; cursor: crosshair; }
.navi:hover {  color: #862F2F; text-decoration: underline overline; cursor: crosshair; }
.navi:ctive {  color: #862F2F; text-decoration: line-through; cursor: crosshair; }

.inhalt:a { color: #862F2F; text-decoration: none; }
.inhalt:link { color: #862F2F; text-decoration: none; font-weight: bold; cursor: crosshair; }
.inhalt:visited { color: #862F2F; text-decoration: none; font-weight: bold; cursor: crosshair; }
.inhalt:hover { color: #862F2F; text-decoration: underline overline; font-weight: bold; cursor: crosshair; }
.inhalt:active { color: #862F2F; text-decoration: line-through; font-weight: bold; cursor: crosshair; }

das funktioniert nich wenn ich das mit <td class="navi"> anwenden will....
wo is der fehler? wie soll ich das anders schreiben?
 
mhmm beim rumprobieren ging es zwischendurch mal, hat sich dann aber mit dem anderem vermischt (da hatte ich beim anderen aber noch kein .inhalt davor)...
 
:link
:active
:visited
:hover

lässt sich nun mal nur in links verwenden....

auf eine td angerechnet geht das nicht

du bräuchtest dann zb

Code:
navi{  color: #862F2F; text-decoration: none; cursor: crosshair; }

und die links in der td müssten auch alle die klasse navi haben

gruß
q
 
Original geschrieben von schneeWITCHen
.navi:link { color: #862F2F; text-decoration: none; cursor: crosshair; }
.navi:visited { color: #862F2F; text-decoration: none; cursor: crosshair; }
.navi:hover { color: #862F2F; text-decoration: underline overline; cursor: crosshair; }
.navi: ctive { color: #862F2F; text-decoration: line-through; cursor: crosshair; }

.inhalt:a { color: #862F2F; text-decoration: none; }
.inhalt:link { color: #862F2F; text-decoration: none; font-weight: bold; cursor: crosshair; }
.inhalt:visited { color: #862F2F; text-decoration: none; font-weight: bold; cursor: crosshair; }
.inhalt:hover { color: #862F2F; text-decoration: underline overline; font-weight: bold; cursor: crosshair; }
.inhalt:active { color: #862F2F; text-decoration: line-through; font-weight: bold; cursor: crosshair; }

das funktioniert nich wenn ich das mit <td class="navi"> anwenden will....
wo is der fehler? wie soll ich das anders schreiben?
erstens geht das nicht mit tabellen und zweitens ist ein tippfehler drin...
 
<a class="navi" href="http://www.asmotec.net">seite geht no net</a>

wie Quentin schon gesagt hat, a.navi:link lässt sich nur auf links anwenden, deshalb musst dus auch in den Link reinschreiben...hatte das gleiche Problem als ich noch mit Dreamweaver gearbeitet hab, der wendet den CSS immer auf TD an....
 
Status
Nicht offen für weitere Antworten.
Zurück