473,396 Members | 1,797 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

v easy but baffling to me CSS question

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
Apr 5 '06 #1
4 1053
try setting the border of the image to 0

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

"CharlesA" <Ch******@discussions.microsoft.com> wrote in message
news:6C**********************************@microsof t.com...
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

Apr 5 '06 #2

CharlesA wrote:
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

Apr 5 '06 #3
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" <Ch******@discussions.microsoft.com> wrote in message
news:6C**********************************@microsof t.com...
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

Apr 5 '06 #4
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
Apr 5 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Ben Floyd | last post by:
It goes like this: Im converting a perl script that executes a command on each result of a directory listing. In perl, all is well. In Python, using approximately the same logic creates a...
5
by: TimS | last post by:
I am getting a baffling File not found error (0x800A0035). I am writing asp on a windows 2000 server. I build a path and filename from several fields in a jet database using SQL commands, like...
8
by: Michelle | last post by:
I have tried every variation of the "onchange" statement below without any actual reloading of the page: The FireFox javaScript Console reports the following message: Error: missing : in...
2
by: bfrasca | last post by:
I have a well-formed XML file that I am trying to load into a dataset using the ReadXML method. It keeps telling me that "there are multiple root elements". I can view the data using XML Designer...
12
by: Mike | last post by:
I have posted this before, but no one responds, so here it goes again. I think my question is intimidating people and I have no idea why?!? This is not a new concept. You can do this with other...
13
by: Ghislain Tanguay | last post by:
I have a compiled vb.net app and I want to give the user a choice to launch it from the start line command and pass it a parameter or not. How can I do that in my code? Is it possible? Ex. :...
2
by: Double Echo | last post by:
Hi, Forgive me if I ask a dumb question, I'm new to classes and object programming with PHP, and cannot figure out what the problem is with this class. Maybe I have overlooked something but...
9
by: djconner | last post by:
I'm a total neophyte in Javascript, trying to hack something together fast, and run into something that I can't understand at all. Two loops appear in sequence. The idea is that arrQuestions...
1
by: Tim Redfern | last post by:
Hi I'm having an issue that is probably obvious to somebody here but its baffling me.. I'm using python (2.5.1) on an embedded linux sytem system (kernel 2.6.19 I think) with only 32MB memory...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.