Hallo,
Ich würde gerne die Links innerhalb eines bestimmten "td"s mit eigenen Farben versehen. Dh die Links aller anderen Spalten sollen die Standardlinkfarben haben.
Und zwar, die Spalte in der wir die eigenen Linkfarben haben möchten, nenn wir einfach mal "haupt"
<style type="text/css">
td.haupt {width:480px; height:639px; background-color:#FFF;}
td.haupt a {color:#0CF; text-decoration:none; font-family:Arial,Helvetica,sans-serif;}
td.haupt a:link {color:#0CF; text-decoration:none;}
td.haupt a:visited {color:#0CF; text-decoration:none;}
td.haupt a:hover {color:#0CF; text-decoration:underline overline;}
td.haupt a:active {color:#0CF; text-decoration:none;}
</style>
<body>
<table >
<tr>
<td class="haupt"><a href="#">Link</a></td>
</tr>
</table>
</body>
Allgemeine Syntax:
Element.Klasse inneresElement:Pseudoformat
Bedenke: Bei den Pseudoformaten :link... ist auch die Reihenfolge wichtig. Die ist korrekt: :link :visited :hover :active :focus.
Was soll eine 480px breite und 639px hohe Tabellenzelle? Dir ist bekannt, dass 800 x 600 px durchaus noch eine gängige Bildschirmeinstellung ist?
viele Grüße
Axel