Witam
Napisałem sobie prosta stronę. Na stronie dodałem plik *.css w którym zdefiniowałem, aby linki najechane były czerwone i podkreślone, a pozostałe czarne. Jednak działa to wszystko tylko za pierwszym razem. Po wybraniu linku i ponownym najechaniu juz nie działa. Z tego co pamiętam, to link po ponownym najechaniu powinien się zachowac tak jak by nie był w ogóle kliknięty dlatego nie wiem gdzie jest błąd.
Ponizej jest kod css i fragment strony z niektórymi linkami:
@charset "iso-8859-2";
/* CSS Document */
body {
background-color: #FFFFFB;
}
.footer {
border-top-style: double;
border-top-color: #0000CC;
border-top-width: 1px;
}
.menu {
border-top-width: 2px;
border-top-style: solid;
border-top-color: #0000CC;
background-position: bottom;
}
.checked {
background-image: url(obrazy/menu.gif);
background-repeat: no-repeat;
background-position: center bottom;
text-align: center;
vertical-align: bottom;
font-family: "Times New Roman", Times, serif;
font-size: 18px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #0000CC;
}
a {
text-decoration: none;
color: #000000;
}
a:hover {
text-decoration: underline;
color: #FF0000;
}
a:active {
text-decoration: underline;
color: #FF0000;
}
a:visited {
text-decoration: none;
color: #000000;
}
.unchecked {
text-align: center;
vertical-align: bottom;
font-family: "Times New Roman", Times, serif;
font-size: 18px;
border-bottom-width: 2px;
border-bottom-style: solid;
border-bottom-color: #0000CC;
}
.navigation {
border-right-width: 2px;
border-right-style: solid;
border-right-color: #0000CC;
padding-left: 5px;
padding-top: 5px;
padding-bottom: 5px;
word-spacing: 5px;
font-size: 12px;
font-family: "Times New Roman", Times, serif;
}
.footer{
font-family: "Times New Roman", Times, serif;
font-size: 10px;
text-align: center;
}
.navigation #other:hover{
text-decoration:underline;
color:#FF0000;
font-family: "Times New Roman", Times, serif;
font-size: 12px;
}
.navigation #other:visited{
text-decoration:none;
color:#000000;
}
.navigation #other{
text-decoration:none;
color:#000000;
}
<td class="navigation"><a id="other" href="index.php?op=faq">FAQ
</a><br /> <a id="other" href="index.php?op=promocje">Promocje
</a><br /></td> <td colspan="4"><?php include('functions/site_index.php')?></td>
Będę wdzięczny za pomoc.