473,804 Members | 2,164 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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.asp x"><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 1066
try setting the border of the image to 0

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

"CharlesA" <Ch******@discu ssions.microsof t.com> wrote in message
news:6C******** *************** ***********@mic rosoft.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.asp x"><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.asp x"><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;bord er-width:0px;"
/>"CharlesA" <Ch******@discu ssions.microsof t.com> wrote in message
news:6C******** *************** ***********@mic rosoft.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.asp x"><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
1956
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 seemingly random problem I can't pin down. I hesitated to ask this question since it's so Slackware Linux-centric, and im new to Python. It's hard to ask in a generic way, but im out of options...
5
4596
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 this: Sql = "SELECT dirs.rootname,dirs.dirname FROM dirs" RS.open Sql RS.movefirst do while not RS.EOF temp1=trim(RS("rootname"))
8
1980
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 conditional expression Source Code: location.href=themes.php?scheme=(form.color_schemes.options.value) My Code for the dropdown box is: <form name='color_schemes' method='post' action='themes.php' >
2
1819
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 in Visual Studio 2003 without any problems and the schema and file have been validated using several different tools. I even successfully generated a typed dataset with Visual Studio 2003 by importing the XML into my project. I'm baffled, does...
12
1518
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 programming languages, so why is C# so different? Again, here is my baffling C# question. I have C# code that opens an application, but right after it opens I am confronted by prompts for information (i.e. "Please enter your id"). I would like to...
13
1484
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. : MyApp.exe "Go"
2
1368
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 just can't see it. The error message usually means a typo or something that I missed. I get this error: Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in crypt_class.php on line 6
9
1278
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 consists of the answers to each of 6 questions. Each is answered by a number, 0-5, and each number can only be used once. So arrNumbers tracks whether a particular number was used as an answer. arrNumbers would be set to 'Used' if the user...
1
1293
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 (for an art project). My python code runs nicely when launched manually from a login shell, ps shows its using 11MB or so of memory. However, when I try to launch the same code from a startup script, it
0
9714
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9594
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10600
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
10351
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10096
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7638
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5673
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4311
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3834
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.