Zum Inhalt springen

CSS A-Tags ganzen subparts zuweisen

Erstellt am 27. März 2003 · 1 Antwort · letzte Antwort am 28. März 2003

Tags: HTML & CSS, Frage

Shinji ·

Hallo !

Ich habe in meinem CSS getrennte Stile für die A-Tags stehen. Und zwar einmal für das Navigationsmenue und einmal für den Content.

A.menue:link {text-decoration: none; color: black}
A.menue:visited {text-decoration: none; color: black;}
A.menue:active {text-decoration: none; color: green;}
A.menue:hover {text-decoration: none; color: green;} 

A.content:link {text-decoration: none; color: black;  border-style: none none dashed none;  border-width: 1px;}
A.content:visited {text-decoration: none; color: black; border-style: none none solid none;  border-width: 1px;}
A.content:active {text-decoration: none; color: green;}
A.content:hover {text-decoration: none; color: green;}

Ist es jetzt irgendwie möglich den einzelnen subparts diese A-Tags zuzuweisen. Ich habe es einmal mit

subparts.MENUE.ATagParams= class="menue"
subparts.CONTENT.ATagParams= class="content"

versucht und es hat leider nicht funktioniert.

Wenn ich im MENUE aber schreibe

NO {
ATagParams= class="menue"
}

geht es. Das ist aber nicht unbedingt das was ich erreichen wollte.
Wie lautet denn der richtige TypoScript Befehl für so etwas?

Gruß
Thorsten

MartinM ·

Hallo Thorsten,

versuchst du für ganze Body A tag definieren als

page.bodyTag = <body leftmargin="0" topmargin="0" link="#FF0000"
vlink="#DD0000" alink="#990000">

und für menu mit

NO {
ATagParams= class="menue"
}

Ich bin nicht ganz sicher, aber sollte es funktioniert.

Grüss
Martin