v easy but baffling to me CSS question

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

I'm using .net framework 1.1 C# and ASP.net with IE 6.0.2800

I'm using the very traditional idea of having a logo at the top left of the
page which when clicked takes you to the home page

This is the markup:
<a id="logo" href="Entry.aspx"><img src="../images/logo.gif"></a>

the trouble is, when I click it, it gets an unsightly purple border around
the image which indicates that the image has been visited.

no combinations of # (ID) or . (class) CSS rules can get me to turn off the
a:visited for this image
quite simply I want the image to act as a hyperlink and never have any kind
of visited border around it...

any ideas on how can I can achieve this?

Regards and thanks in advance,
CharlesA
 
try setting the border of the image to 0

like
<img src="../images/logo.gif" border="0">
 
Not really an ASP.NET question but ...

add this to teh img tag :
<img src="../images/logo.gif" style="border-style:None;border-width:0px;"
 
CharlesA said:
I'm using .net framework 1.1 C# and ASP.net with IE 6.0.2800

I'm using the very traditional idea of having a logo at the top left of the
page which when clicked takes you to the home page

This is the markup:
<a id="logo" href="Entry.aspx"><img src="../images/logo.gif"></a>

the trouble is, when I click it, it gets an unsightly purple border around
the image which indicates that the image has been visited.

no combinations of # (ID) or . (class) CSS rules can get me to turn off the
a:visited for this image
quite simply I want the image to act as a hyperlink and never have any kind
of visited border around it...

any ideas on how can I can achieve this?

Regards and thanks in advance,
CharlesA


a img
{
border: none;
}

will turn off hyperlink borders on all images. Use an id to make it
specific, eg

a#homeLink img
{
border: none;
}

HTH
 
Thanks all:

this is the one I chose
a img
{
border: none;}

I really appreciate your help with this, I was tinkering with a:visited
etc... and I didn't realize it was to do with the border of the image I
thought it was to do with some <a> property
again many thanks
CharlesA
 
Back
Top