Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

Reply
how to make links act the same way, even after visited
Old 04-19-2004, 09:51 PM how to make links act the same way, even after visited
Novice Talker

Posts: 9
Trades: 0
Im using an external css sheet for my website. Here is the css code for my links:
"

.reglink {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: underline}

.reglink:hover {color: #D9D9D9; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: none}

.reglink:visited {color: #29BBFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: none}

"

I want the links to act the same way all the time, even after you click them, but If I remove the :visited code, the links disappear after you click them. Anyone know how I could do this?

Last edited by neorex007; 04-19-2004 at 09:55 PM..
neorex007 is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 04-19-2004, 10:07 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
delete the :visited and change the .reglink line to:

Code:
.reglink:link,.reglink:visited {
    color: #FFFFFF;
    font-family: Verdana, Arial, Helvetica, sans-serif;
    font-size: 10pt;
    font-weight: none;
    text-decoration: underline
}
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 04-20-2004, 05:49 AM
steveharro's Avatar
Extreme Talker

Posts: 172
Trades: 0
Set all the colors to the same that way you can leave all the code and the links will remain the same.

.reglink {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: underline}

.reglink:hover {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: none}

.reglink:visited {color: #FFFFFF; font-family: Verdana, Arial, Helvetica, sans-serif; font-size: 10pt; font-weight: none; text-decoration: none}

Regards Steveharro Best Download Sites
steveharro is offline
Reply With Quote
View Public Profile
 
Old 04-20-2004, 01:17 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
Really, though, if the behaviors for the link and the visited link are going to be exactly the same, there's no reason to have a duplicate line of code just for the visited link.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 04-21-2004, 12:02 PM
Experienced Talker

Posts: 31
Location: TN
Trades: 0
I am needing some help with this also. I usually use

a:link
a:visited
a:hover

and I've never had any problems with that. For some reason and just on this one page that I'm trying to update, it is not working. I've tried copying/pasting other link codes that do work, from other pages of mine unto this one page and it doesn't work. The links show up as my default link that I have the computer set for.
I tried both codes above; the long and short, with just changing to my colors and again, it is not working. This is about to drive me crazy. Could there be something wrong in a different place that would make this happen? One way that I was trying it, the links were picking up the properties that was for the text inside of the same table. Again, this is just on this one page and I've tried even copying and pasting the whole thing onto a clean Notepad and saving it under another name and that doesn't help.

Here is the exact one that I'm trying to get to work, I'll copy/paste the whole thing, just in case

Code:
<style type="text/css">


#container {
			width: 900px;
			\width: 900px;
			w\idth: 900px;
			border: 0px;
			margin: 0px;
			margin-left: auto;
			margin-right: auto;
			padding: 5px;
		}

		#banner {
			padding: 10px;
			margin-bottom: 0px;0px;
			background-color: #000080;
		}

		#content {
			padding: 5px;
			margin-left: 215px;
			margin-right: 215px;
			background-color: #ffffff;
			color: #000000;
		}

		#sidebar-a {
			float: left;
			width: 200px;
			\width: 210px;
			w\idth: 200px;
			margin: 0;
			margin-right: 5px;
			padding: 5px;
			background-color: #ffffff;
			color:#000000;
		}

		#sidebar-b {
			float: right;
			width: 200px;
			\width: 210px;
			w\idth: 200px;
			margin: 0;
			margin-left: 5px;
			padding: 5px;
			background-color: #ffffff;
		}

		#footer {
			clear: both;
			padding: 5px;
			margin-top: 5px;
			background-color: #ffffff;
			color:#000000

a:link {font-family: Arial Italic; font-size: 12; color:#483D8B;}
a:visited {font-family: Arial Italic; font-size: 12; color:#483D8B;}
a:hover {font-family: Arial Italic; font-size: 12; color:#1E90FF;}

-->

</style>

</head>

<bodystyle="filter:progid:DXImageTransform.Microsoft.Gradient(endColorstr='#C0CFE2', startColorstr='#FFFFFF', gradientType='0');">
<center>

<div id="container">


		<div id="banner"><img src="C:\My Documents\My Pictures\topbanner.bmp"></a></div>
<br>
	<a href="contactus.html" border="0">CONTACT US</a>
I can do paste it all, if someone thinks that maybe it's below that. I don't see how though. Anyway, for me, the links are showing up as Comic Sans, size 16-18, blue link, no hover color and purple after clicked.

Thanks in advance and sorry for just popping in to ask for help.
clueLessnTN is offline
Reply With Quote
View Public Profile Visit clueLessnTN's homepage!
 
Old 04-21-2004, 09:53 PM
techwench's Avatar
Code Monkey

Posts: 1,449
Name: Danalyn
Location: Dallas, TX
Trades: 0
your #footer id isn't closed. you're missing the closing: ; }

__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
techwench is offline
Reply With Quote
View Public Profile
 
Old 04-22-2004, 12:00 AM
Experienced Talker

Posts: 31
Location: TN
Trades: 0
Quote:
Originally Posted by prissed
your #footer id isn't closed. you're missing the closing: ; }

That was it!!!! I have been looking at that code for 2 days. Searching everything, so I had thought. Thank you SO much! I honestly was thinking that surely couldn't be it. It was. Thank you.
clueLessnTN is offline
Reply With Quote
View Public Profile Visit clueLessnTN's homepage!
 
Old 04-22-2004, 02:02 AM
Experienced Talker

Posts: 31
Location: TN
Trades: 0
Quote:
Originally Posted by clueLessnTN
That was it!!!! I have been looking at that code for 2 days. Searching everything, so I had thought. Thank you SO much! I honestly was thinking that surely couldn't be it. It was. Thank you.
Okay, I'm ready to feel like a loon again. I was trying that code above as one of the ways to try and fix the link problem. Well, you solved that problem. I decided to take out all of that and just use table and I'm right back at the problem again. And I cannot find what I could have possibly overlooked. Here is this one, if you (or anyone) could possibly help me look. If I find it, I'll post it.

Code:
<style type="text/css">


a:link {font-family: Aria; font-size: 12; color:#483D8B;}
a:visited {font-family: Arial; font-size: 12; color:#483D8B;}
a:hover {font-family: Arial; font-size: 12; color:#1E90FF;}


-->

</style>
I spelled "Arial" wrong. That only took me about an hour to figure out. Thank goodness there's other pages that need updated and graphics that need made.

Last edited by clueLessnTN; 04-22-2004 at 03:47 AM.. Reason: Figured it out. :)
clueLessnTN is offline
Reply With Quote
View Public Profile Visit clueLessnTN's homepage!
 
Reply     « Reply to how to make links act the same way, even after visited
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.27222 seconds with 12 queries