deepgreen
18-12-2001, 02:03
ich will in einer tabelle das die links anderes dargestellt werden als im rest des html-files.
also in der tabelle, sollen links nicht unterstrichen sein und zusätzlich eine andere farbe habe.
kann mir vielleicht jemand einen tipp geben wie ich das zustande bringen kann?
BjörnHolger
02-01-2002, 17:11
du must in deinem Style Links eine andere Farbe zuweisen.Z.b. so :
dein original :
<style>
A:link { text-decoration:underline; color:#808080 }
A:visited { text-decoration:underline; color:#800000 }
A:hover { text-decoration:underline; color:#FF0000 }
</style>
und jetzt fügst du noch andere Links-Deffinitionen dazu, zb. so :
<style>
A:link { text-decoration:underline; color:#808080 }
A:visited { text-decoration:underline; color:#800000 }
A:hover { text-decoration:underline; color:#FF0000 }
A.S:link { text-decoration:none; color:#F1F1F1 }
A.S:visited { text-decoration:none; color:#F1F1F1 }
A.S:hover { text-decoration:none; color:#000000 }
</style>
so , normalerweise sieht ja ein Link so aus :
<a href="LINK.htm"> LINK </a>
nun musst du diesem Link die Deffinition des 2.Stylesheets geben.
<a class="S" href="LINK.htm"> LINK </a>
Anders:
<style>
A:link { text-decoration:underline; color:#808080 }
A:visited { text-decoration:underline; color:#800000 }
A:hover { text-decoration:underline; color:#FF0000 }
TD > A:link { text-decoration:none; color:#F1F1F1 }
TD > A:visited { text-decoration:none; color:#F1F1F1 }
TD > A.S:hover { text-decoration:none; color:#000000 }
</style>