473,699 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Having problems with the anchor tag

I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray. I think a previous instance of a:visitor in the css
file is overriding something in the other part of my CSS file. How can
I get the text to turn gray no matter if it has been visited or not?
Here is the part in my CSS file taht should be of importance.

a:visited { color: #FFFFFF; }

#TutorialsLayer {
position:absolu te;
padding: 4px 4px 4px 4px;
left: 442px; top: 154px;
width: 140px;
height: 85px;
z-index:2;
background-color: #4169E1;
layer-background-color: #4169E1;
visibility: hidden;
}

#TutorialsLayer p {
margin: 0 0 6px 0;
}

#TutorialsLayer a:hover, #TutorialsLayer a:active {
background-color: #FFFFFF;
border: 1px solid #666;
color: #999;
text-decoration: none;
}

#TutorialsLayer a { width: 135px;
display: block;
padding: 0 3px;
text-align: center;
}

#TutorialsLayer a:link, #TutorialsLayer a:visited {
color: #FFFFFF;
background-color: ##4169E1;
border: 1px solid #eee;
text-decoration: none;
}
Jul 20 '05 #1
2 4664
Mark Constant wrote:
I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray.

[snip]

This question has been asked so many times that people got fed up of
answering it and put it in the FAQ:

<URL:http://css.nu/faq/ciwas-aFAQ.html#QA09>

It's always a good idea to check the FAQ before asking for help. Apart from
anything else, you could easily save yourself some time.
--
Jim Dabell

Jul 20 '05 #2
Mark Constant wrote:
I have a drop-down div menu that I made CSS and Javascript. When the
user passes over a selection of the menu it creates a border around
the text and turns everything between the border white. Also it turns
the text from white to gray so you can still see the text. My problem
is once the user has clicked on the link it turns the text totally
white, so when you go over it in the menu again it stays white and
doesn't turn gray.

[snip]

This question has been asked so many times that people got fed up of
answering it and put it in the FAQ:

<URL:http://css.nu/faq/ciwas-aFAQ.html#QA09>

It's always a good idea to check the FAQ before asking for help. Apart from
anything else, you could easily save yourself some time.
--
Jim Dabell

Jul 20 '05 #3

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

Similar topics

0
2666
by: nam | last post by:
could someone please help me with this bizarre problem - I've created a swf file at the top of my html page. The swf file (using Swish) is simply a menu of 5 links to 5 anchor points on the html doc. The procedure for linking files with swish (same as Flash swf) is: on release { javascript('window.location.href('test.html#anchorname'); }
7
3398
by: LRW | last post by:
Below I'll paste my CSS and the HTML in question. But what's happening is, I'm trying to establish a link behavior for a class that's separate from the normal link class. I've established a: 's with no underline and then an underline for hover...but oddly, only ONE link will actually show the underline on hover. All the rest, even with the same HTML, won't pop up an underline. I just don't get it! If I could get any advice I'd really...
6
27655
by: Daniele Baroncelli | last post by:
Hi guys, I would like to change the text in an anchor. es. from <a id="idanchor">oldtext</a> to
6
6655
by: Richard Brown | last post by:
Ok, I celebrate and rejoice in the Anchor property. So wonderful compared to the horrible 'resize' code I had to write in VB6, there is just no end to the wonders of VB.NET..... uh, ok..... BUT... I have a form with a lot of controls side by side, etc. The Anchor is really only useful to resize 1 control on each line (and move all the others). BUT, does anyone have any articles or other ways to do this? For example, I am working on...
8
1773
by: Melanie Rösch | last post by:
Hi all, I have an application where I docked a TabControl with 'FILL'. In these TabControl I have: - a Label with anchor 'Left, Top' - a TextBox with anchor 'Left, Top, Right' - a Button with anchor 'Top, Right' All these elements are placed in one row. On my computer every thing works fine, but if I send
3
3864
by: gary | last post by:
Hi, I am trying to reference an anchor in a user control with a url. This worked in 1.1 but no longer works in 2.0. The ascx control is located in a "/include" folder If you have a hyperlink control and you assign the navigateurl property = "../#anchor" whereby you want to add this # reference to the current url the url ends up with the #anchor twice.
10
2703
by: elibol | last post by:
Hi, Is there an event that fires when the back or forward button on a browser is pressed? I need an event to fire when someone clicks the back or forward button after an anchor has been set. Thanks so much for reading about my problem! H
5
1747
by: Randy Webb | last post by:
The list below has the current section number, proposed anchor name, and then the current title of that section. Some make sense, some don't. There are a few that don't have proposed anchor names yet as I couldn't come up with a decent anchor name. Some anchor names are duplicated (#ajax is one), where the idea would be to combine those entries into one entry. Any proposed anchor name changes, thoughts, or ideas are welcome. The major...
3
4518
by: Joseph Gruber | last post by:
Hi all -- I have two questions. First, I'm adding a control to my form at runtime and the control/form seems to ignore the anchor property of the runtime control. Any idea how I can get a runtime control to anchor properly? Second -- the program I'm writting is supposed to look like a dos application (long story). When the application is "Normal" aka a small window then everything looks great. But when I resize the window to...
1
1830
by: viv1tyagi | last post by:
Hi everyone ! ! ! I'm just a month old in the world of Python and trying to develop an application using Tkinter in which a new window pops out on a particular button press.The code for this new window is in "AddKlas.py" file. The problem is all the content of the new window is overwritten on the previous window. Below is the code of the two files
0
8697
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
9045
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
7767
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6538
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
5878
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4382
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4634
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3062
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
2359
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.