NS 4.7, CSS und verschieden formatierte Links
toby
- html
Alaaf,
kann sich (oder besser: mir) irgendjemand erklären, warum die Formatierung für den Link am Anfang der Seite funktioniert (NS 4.7) und am Ende nicht?
Danke im Voraus.
toby
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>blabla</title>
<style type="text/css">
body, td
{
font-family: verdana, arial, helvetica, sans-serif;
font-size: 10px;
color: #000000;
}
a:link
{
font-weight: bold;
text-decoration: underline;
color: #00A266
}
a:visited
{
font-weight: bold;
text-decoration: underline;
color: #00A266
}
a:hover
{
font-weight: bold;
text-decoration: underline;
color: #00A266
}
a.lightgreen:link
{
color: #7FB09E;
text-decoration: none;
font-weight: normal;
}
a.lightgreen:visited
{
color: #7FB09E;
text-decoration: none;
font-weight: normal;
}
a.lightgreen:hover
{
color: #7FB09E;
text-decoration: none;
font-weight: normal;
}
</style>
</head>
<body leftmargin="0" topmargin="0" bottommargin="0" marginheight="0" marginwidth="0" bgcolor="#ffffff">
<a class="lightgreen" href="test" target="_self">blabla</a>
<center>
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td bgcolor="#efefef"><img src="img/spacer.gif" alt="" width="5" height="1" border="0"></td>
<td valign="top">
<!-- Header mit Logo -->
<table cellpadding="0" cellspacing="0" border="0">
<tr>
<td><img src="img/header_left.jpg" alt="" width="475" height="61" border="0"></td>
<td><img src="img/header_logo.gif" alt="" width="254" height="61" border="0"></td>
</tr>
<!-- gruen weiss gruen -->
<tr>
<td bgcolor="#00A266" colspan="3"><img src="img/spacer.gif" alt="" width="1" height="1" border="0"></td>
</tr>
<tr>
<td colspan="2"><img src="img/spacer.gif" alt="" width="1" height="19" border="0"></td>
</tr>
<tr>
<td bgcolor="#00A266" colspan="2"><img src="img/spacer.gif" alt="" width="1" height="1" border="0"></td>
</tr>
</table>
</td>
<td bgcolor="#EFEFEF"><img src="img/spacer.gif" alt="" width="5" height="1" border="0"></td>
</tr>
</table>
</center>
<a class="lightgreen" href="test" target="_self">blabla</a>
</body>
</html>
Antwort: sie funktioniert eigentlich. Was nicht funktioniert sind die Styles, die für body und td definiert wurden. Also font-family und -size in die Pseudoklasse, dann geht's...
Antwort: sie funktioniert eigentlich. Was nicht funktioniert sind die Styles, die für body und td definiert wurden. Also font-family und -size in die Pseudoklasse, dann geht's...
Nachtrag:
NS 4.7 hat Probleme, wenn vor dem Element irgendwo eine verschachtelte <div>-Konstruktion vorkommt... und auch sonst so einige ;)