I have found many posts on how visited doesn't work anymore (most of them pretty old posts) on modern browsers.
One of them: Google chrome a:visited background image not working
This one is saying that the color
attribute is though working. Well, not for me, I am testing on Chrome which does nothing, IE does but on the next click it looses it.
It must be possible somehow....I mean, Google does it :))
Can someone please bring any ideas? maybe I missed something.
Thanks!
EDIT: This is the code I am using:
<asp:Repeater ID="rptArrival" runat="server">
<ItemTemplate>
<div class="left">
<a id="aCityTo" runat="server" OnServerClick="lnkLink_OnCommand" cities='<%# Eval("CityCodeFrom")+"|"+ Eval("CityCodeTo") %>' >
<asp:Label runat="server" ID="Label1" Text='<%# Eval("CityNameTo") %>' CssClass="linkButtonBold"></asp:Label>
</a>
</div>
</ItemTemplate>
</asp:Repeater>
.linkButtonBold
{
font-family: Arial, Helvetica, sans-serif;
font-style: normal;
font-size: 12px;
font-weight: bold;
color: #829094;
text-decoration: none;
cursor: pointer;
}
.linkButtonBold:hover
{
text-decoration: underline;
}
.linkButtonBold:visited {
color: red;
}
I have also tried without the class on the Label and with a:hover, a:visited and also nothing.
It is ASP.Net and C#.
Thanks for your replies.
EDIT: The generated code:
<div class="left">
<input type="hidden" name="ctl00$ContentPlaceHolder1$rptLowCost$ctl00$rptLowCostDepartures$ctl00$rptArrival$ctl00$hfCityCodeTo" id="ctl00_ContentPlaceHolder1_rptLowCost_ctl00_rptLowCostDepartures_ctl00_rptArrival_ctl00_hfCityCodeTo" value="AMS">
<a id="ctl00_ContentPlaceHolder1_rptLowCost_ctl00_rptLowCostDepartures_ctl00_rptArrival_ctl00_aCityTo" cities="CLJ|AMS" href="javascript:__doPostBack('ctl00$ContentPlaceHolder1$rptLowCost$ctl00$rptLowCostDepartures$ctl00$rptArrival$ctl00$aCityTo','')">
<span id="ctl00_ContentPlaceHolder1_rptLowCost_ctl00_rptLowCostDepartures_ctl00_rptArrival_ctl00_Label1">Amsterdam</span>
</a>
</div>
and the class (I have taken off the class of the Label and replaced it with your css). The anchors in the horizontal menu are taking the style, but these ones, from the repeater don't:
a:visited {
color: purple;
}
a:link {
color: blue;
}