v easy but baffling to me CSS question

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
 
A

Anthony Merante

try setting the border of the image to 0

like
<img src="../images/logo.gif" border="0">
 
S

Swanand Mokashi

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;"
 
F

Flinky Wisty Pomm

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
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,055
Latest member
SlimSparkKetoACVReview

Latest Threads

Top