473,597 Members | 2,423 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 4661
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
2658
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
3380
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
27640
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
6648
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
1766
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
3845
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
2693
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
1739
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
4515
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
1823
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
7962
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
7884
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
8380
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...
1
8024
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,...
1
5844
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
3880
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
3921
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1493
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
1229
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.