473,624 Members | 2,104 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Problems with visited links being inconsistent

I'm experiencing frustration with our site not consistently displaying
visited links. We use CSS, and the links on some pages work as intended, but
others do not.
To see an example of what I'm talking about visit the following page:
http://hwcs.com/products/index.asp

Click the "20 software products" link, then click back and Refresh the
page... the link does not change color. The problem exists in both IE & NS.

Any idea what's going on here, or how to fix it? Thnx in advance for your
help.

Stan
gr********@msn. com
Jul 23 '05 #1
4 3233
Matt Stanley <gr********@msn .com> wrote:
http://hwcs.com/products/index.asp

Click the "20 software products" link, then click back and Refresh the
page... the link does not change color. The problem exists in both IE & NS.

Any idea what's going on here, or how to fix it?


Most of the a:link selectors in your style sheet specify the same rules as
the corresponding a:visited selectors, so of course your visited links look
just like your unvisited links.

In this case, the relevant bit is:

.pageBody A:active, .pageBody A:link, .pageBody A:visited {
color: #0000FF;
text-decoration: underline;
}

HTH
--
Darin McGrew, mc****@stanford alumni.org, http://www.rahul.net/mcgrew/
Web Design Group, da***@htmlhelp. com, http://www.HTMLHelp.com/

"You can't strengthen the weak by weakening the strong."
Jul 23 '05 #2
"Matt Stanley" <gr********@msn .com> wrote:
I'm experiencing frustration with our site not consistently displaying
visited links. We use CSS, and the links on some pages work as intended, but
others do not.

To see an example of what I'm talking about visit the following page:
http://hwcs.com/products/index.asp

Click the "20 software products" link, then click back and Refresh the
page... the link does not change color. The problem exists in both IE & NS.

Any idea what's going on here, or how to fix it? Thnx in advance for your
help.


Your CSS is setting unvisited and visited links in that part of the
page to the same colour:
..pageBody A:active, .pageBody A:link, .pageBody A:visited {
color: #0000FF;
text-decoration: underline;
}

No doubt those links where it works are not inside pageBody and thus
are affected by other styles.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>
Jul 23 '05 #3
Thanks to both Steve & Darin! It's so obvious now that I feel silly for
missing it. I inherited this code from a 3rd party vendor that developed it,
and am often discovering weird quirks like this one that need fixing.
Sometimes it just takes another set of eyes, though I should have examined
the CSS more closely. Thanks again!

Matt

"Steve Pugh" <st***@pugh.net > wrote in message
news:u0******** *************** *********@4ax.c om...
"Matt Stanley" <gr********@msn .com> wrote:
I'm experiencing frustration with our site not consistently displaying
visited links. We use CSS, and the links on some pages work as intended, butothers do not.

To see an example of what I'm talking about visit the following page:
http://hwcs.com/products/index.asp

Click the "20 software products" link, then click back and Refresh the
page... the link does not change color. The problem exists in both IE & NS.
Any idea what's going on here, or how to fix it? Thnx in advance for your
help.


Your CSS is setting unvisited and visited links in that part of the
page to the same colour:
.pageBody A:active, .pageBody A:link, .pageBody A:visited {
color: #0000FF;
text-decoration: underline;
}

No doubt those links where it works are not inside pageBody and thus
are affected by other styles.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net > <http://steve.pugh.net/>

Jul 23 '05 #4
Matt Stanley <gr********@msn .com> asks...
I'm experiencing frustration with our site not
consistently displaying visited links. We use CSS,
and the links on some pages work as intended,
but others do not. To see an example of what I'm talking about visit
the following page: http://hwcs.com/products/index.asp Click the "20 software products" link, then click back
and Refresh the page... the link does not change color.
The problem exists in both IE & NS.


And Firefox as well.

I'm probably missing something, but how would you expect <a
href="product_l ist.asp"> to perform based on your external style sheet
at http://hwcs.com/library/css/global.css?

----
- Dean Speir
Jul 23 '05 #5

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

Similar topics

3
17076
by: Matt Adams | last post by:
As well known I could specify the text color in the body tag like: <BODY TEXT=WHITE LINK=WHITE VLINK=RED ALINK=WHITE> What I want to achieve now is that always (!) the text of the last visited link and the text of the link under the cursor are red. All other links should be white. The problem with the construction above is that a visited link remains for the rest of the session red regardless wether it was visited 17 clicks back in...
9
2939
by: jetobe | last post by:
Hi everyone, I am trying to debug someone's site which has <h3><a href="www.legislation.qld.gov.au">Queensland Acts</a></h3> The problem is that the <a> tag is taking precedence and overriding the <h3> tags that they want the text to resemble. It's problematic because it's a huge site (around 500 pages), it's in
18
10734
by: Jan Tuxen | last post by:
Jakob Nielsen in his most recent Alertbox (http://www.useit.com/alertbox/20040503.html) tells web authors to change the color of visited links. I agree to his purpose: Help users understand where they have been. I also agree to the background: Too many web authors keep uniform link colors or their pages, thereby confusing the users. What I have a hard time agreeing to is his conclusion that web authors should deliberately change the...
6
1470
by: - jes | last post by:
Greetings. Using CSS, a programmer can set the color for an href link and a different color for a VISITED href link. Anyone know where this "list" of visited links is stored? Is it accessible (can I read it) with ASP? Is it updateable (can I add new links to the list) with ASP?
8
2918
by: Chad | last post by:
Should links automatically appear in the "visited" color as defined by the user's IE settings without having to add any special coding? I have a situation where the link was not changing color until I added the following style: .vl:visited{color:#808080;} And then referenced this style in my Anchor:
1
1346
by: Chad | last post by:
First visit all of the links on the page. For each, if the link opens a new window, close it. If it opnes in teh same window, hit back. then hit REFRESH. Notice that while all links SHOULd be displayed in the visited color, usually not ALL of the links that open in a new window (the first 4) will appear as visited. The links that open in the same window will always appear as visited.
0
1418
by: PsyBorg | last post by:
This is not entirely a PHP question although it is based in PHP. I have been creating a site, where I want the visitors to see the visited links as "Crossed Out" using CSS. However, I also want this effect to disappear after about 18 hours, so I used a PHP cookie to read when the last time the user visited the site was, and change the CSS so that the "visited" links had the same "Style" as the regular links. This seemed to work, however...
1
4105
beacon
by: beacon | last post by:
I'm looking to reset the visited link color once another link is selected. Also, once that link takes me to a particular page, I want the font-weight for that page to be bold to indicate that it's the page you're looking at. Now, if the links have never been visited before, they are blue. If you hover over the links they turn light blue. I want the user to be able to select the link and it take you to that page. On that page, I want the link...
0
8234
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
8172
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
8677
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
8335
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
8474
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
6110
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
5563
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
4079
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...
1
1784
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.