473,387 Members | 1,745 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,387 software developers and data experts.

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 3218
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****@stanfordalumni.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.com...
"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_list.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
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...
9
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...
18
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...
6
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...
8
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...
1
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...
0
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...
1
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...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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: 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
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
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,...
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...

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.