Style Links Problem

Hi guys!<br />
Here I have some problems with the links.<br />
As you see I'm using style sheet for the links.<br />
<br />
They work nice with the exception of that I have some links that open in a new window <br />
<br />
each, and these links are always red, they suppose to be gray, change color on hover, and turn red after you click on them.<br />
Well that is not the case those links that open in a new window are always red and change the color on hover.<br />
<br />
The best thing to understand would actualy be to see them in action.<br />
<br />
Could you please tell me what is wrong with this? How do I fix it?<br />
<br />
THANK YOU!<br />
<br />
Here is the code:<br />
======================<br />
<br />
<HEAD><br />
<br />
<!-- START LINKS WITH NO UNDERLINE, COLOR CODED IN THE RIGHT ORDER FROM TOP TO BOTTOM <br />
<br />
--><br />
<style type="text/css"><br />
A:visited {COLOR: RED; text-decoration: none}<br />
A:link {COLOR: GRAY; text-decoration: none}<br />
A:hover {COLOR: BLUE; text-decoration: none}<br />
A:active {COLOR: LIME; text-decoration: none}<br />
</style> <br />
<br />
<!-- END LINKS WITH NO UNDERLINE, COLOR CODED IN THE RIGHT ORDER FROM TOP TO BOTTOM <br />
<br />
--><br />
<br />
</HEAD><br />
<BODY BGCOLOR="black" TEXT="orange"><br />
<br />
<H3><br />
Index<BR><br />
<!-- <A href=http://www.htmlforums.com/archive/index.php/"index.html" target=main>Main Menu</A><BR> --><br />
<A href=http://www.htmlforums.com/archive/index.php/"runemain.html" target=main>Rune Page</A><BR><br />
<BR><br />
Download <!--more-->s<BR><br />
<A href=http://www.htmlforums.com/archive/index.php/"runemaps.html" target=main>Maps</A><BR><br />
<A href=http://www.htmlforums.com/archive/index.php/"runemods.html" target=main>Mods/Mutators</A><BR><br />
<A href=http://www.htmlforums.com/archive/index.php/"runeskins.html" target=main>Skins/Models</A><BR><br />
<A href=http://www.htmlforums.com/archive/index.php/"runetuts.html" target=main>Tutorials</A><BR><br />
<A href=http://www.htmlforums.com/archive/index.php/"runepics.html" target=main>Pictures</A><BR><br />
<BR><br />
Related Links<BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.runegame.com" target="NewWin">RuneGame</A><BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://ed.runegame.com/" target="NewWin">RuneEd</A><BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.secretlabs.net" target="NewWin">SecretLabs</A><BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://rune.gamerzcity.co.uk/register.php" target="NewWin">Ru-Nation</A><BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.kodgamers.com/" target="NewWin">KOD Gamers</A><BR><br />
<BR><br />
Rune Forums<BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://www.runegame.com/vbf/" target="NewWin">RuneGame</A><BR><br />
<A HREF=http://www.htmlforums.com/archive/index.php/"http://pub97.ezboard.com/fkod74310frm15" target="NewWin">KOD Gamers</A><BR><br />
<HR><br />
<A href=http://www.htmlforums.com/archive/index.php/"mailto:[email protected]">Contact Me</A><BR><br />
</H3><!--content-->Edit:<br />
<br />
Nevermind, I took your question wrong.<br />
<br />
EDIT:<br />
<br />
So you want all the links to be gray, change to blue on hover, and stay gray after clicking on the links?<br />
<br />
If so<br />
<br />
use this in place of the already code.<br />
<br />
<style type="text/css"><br />
A:visited {COLOR: GRAY; text-decoration: none}<br />
A:link {COLOR: GRAY; text-decoration: none}<br />
A:hover {COLOR: BLUE; text-decoration: none}<br />
A:active {COLOR: LIME; text-decoration: none}<br />
</style> <br />
<br />
<br />
But if you want them to be red after the clicking, signifying that they have been there, use the code you already have.<br />
<br />
I do not see the NewWindow links as red instead of gray.<br />
They are all grey except for when you click on them and they turn red, signifying you visited them.<!--content-->Hi JGAS!!<br />
<br />
You said <br />
<br />
"I do not see the NewWindow links as red instead of gray.<br />
They are all grey except for when you click on them and they turn red, signifying you visited them."<br />
<br />
Yes that's right they are gray, until you click on them and change to red, but the problem is that if you refresh the page they should return to gray as the others do. Well they do not turn back to gray when I refresh the page as the other regular links do, they stay red until i clear the cache.<br />
If I return to the page some other time, I want those links to be gray again until I click on them, but no... they are red even if i return later.<!--content-->As you said, I dont think theres a way to do that without clearing the cache.<!--content-->Well JGAS... I hoped that there would be a way to do that without clearing the cache, but if there is not... I guess there is nothig I can do...<br />
<br />
Thanx anyway for assisting me.<!--content-->By the way, the <h3> ... </h3> tag pair should only enclose the words that make up the heading, not all of the links as well. The </h3> tag is in the wrong place.<!--content-->Originally posted by Diablomax <br />
Yes that's right they are gray, until you click on them and change to red, but the problem is that if you refresh the page they should return to gray as the others do. Well they do not turn back to gray when I refresh the page as the other regular links do, they stay red until i clear the cache.<br />
If I return to the page some other time, I want those links to be gray again until I click on them, but no... they are red even if i return later. <br />
then change the color on visited to grey. because it doesn't matter which link you press it iwll stay red because that is what you told it to do.<!--content-->Hi Giz!!<br />
Hello Scoutt<br />
<br />
Well the <H3> pais of tags supposed to make the headings and links all the same font, the only difference between those whould be the color, but I guess you're right I should have the links with a different font size, and I'll look into that.<br />
<br />
Well Scoutt, that is exactly what I ended up doing, I made the visited links gray as well, same color as the unvisited links, so it won't act crazy anymore, but would've been nice if I could've make it work the way I intended in the first place... but well here we go :-)<br />
<br />
THANK YOU GUYS!!<!--content-->>> Well the <h3> pairs of tags supposed to make the headings and links all the same font <<<br />
<br />
Umm, no the <hx> tags are supposed to be used to define headings in the document. A document outline should then show the structure of the document.<br />
<br />
Run the code through <!-- m --><a class="postlink" href="http://validator.w3.org/">http://validator.w3.org/</a><!-- m --> making sure you tick the document outline box in the options. When you get the results screen then scroll down the page to see the document outline produced from your code.<!--content-->You may change how <hX> appear by writing f. ex.<br />
H3 {COLOR: #cccccc; font-weight: bold; font: Verdana}<!--content-->Well... sincerelly I had no clue about the HX tag, never knew about such tag, that's totally new to me.<br />
<br />
Obviously I have a lot to learn :-)<br />
<br />
People on this forum are very very helpfull<br />
Thank You Again Guys!!<!--content-->Originally posted by Diablomax <br />
Well... sincerelly I had no clue about the HX tag, never knew about such tag, that's totally new to me.<br />
<br />
Obviously I have a lot to learn :-) <br />
<br />
See <!-- w --><a class="postlink" href="http://www.w3schools.com">www.w3schools.com</a><!-- w --> ;)<!--content-->Hmm, just to check: <hx> where x is a number from 1 to 6.<!--content-->Ohhh Darn!!!<br />
<br />
I didn't realize that by Hx you meant H3 or whatever... LOL<br />
<br />
Well here I got another question...<br />
Look at this please:<br />
<br />
<TABLE BORDER="1" CELLPADDING="0" CELLSPACING="0" BORDERCOLOR="gree" WIDTH=80><br />
<br />
I specify the width, but If i put there a longer word that shouldn't fit in, the table resizes to fit the word.<br />
<br />
Can I make it such way that the table remains the specified width and doesn't resize, so the word will wrap on the next line or something like that?<br />
<br />
Thank You!!<!--content-->a table will not break a word in half to wrap.<!--content-->Ok scoutt Thank you very much!!<br />
<br />
I just wanted to check, to see maybe there is something, however is no biggie THANK YOU!!<!--content-->
 
Back
Top