Gossamer Forum
Home : Products : Gossamer Links : Discussions :

Dumb CCS question

Quote Reply
Dumb CCS question
I have the following ccs in my globals:

<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif;}
a:hover {color: #FFFFFF; text-decoration: underline}
a:active {color: #660066; text-decoration: none}
a:link {color: #660066; text-decoration: none}
a:visited {color: #660066; text-decoration: none}
</style>

and you would think that my links would be purple and turn white when you hover over them, and get an underline when you hover, right?

WRONG. They are solid purple all the time, no underline ever. What am I doing wrong?

I am on a mac, running IE 5.1 and Netwscape 4.7
Quote Reply
Re: [Evoir] Dumb CCS question In reply to
I'm not sure why you're having the problem. Unimpressed I'm using IE 6 and it's working fine with just a copy and paste for me. (just had to change the background colour so that I'd see the link as underlined and white)

1. If you do a view source can you confirm that your css code is there?

2. Would this link help?

http://archives.hwg.org/...8709707FF49@IPSENT04

3. Check how supported css is on the browsers on Mac.
Quote Reply
Re: [Aki] Dumb CCS question In reply to
Hey Aki,

When I view source, I see the CSS-- here is a clipping from my view source:

<html> <head> <META content="put your description here" name=description> <META content="put your keywords here" name=keywords><style type="text/css">
a:hover {color: #FFFFFF; text-decoration: underline;}
a:active {color: #660066; text-decoration: none;}
a:link {color: #660066; text-decoration: none;}
a:visited {color: #660066; text-decoration: none;}
</style>

And yes, my browser sees CSS because I can see the hover on this forum. I am wondering if there is something else that would be causing this (font globals?)
Quote Reply
Re: [Evoir] Dumb CCS question In reply to
Hmm wierd... can you attach the html source?
Quote Reply
Re: [Aki] Dumb CCS question In reply to
It is a LSQL global. The entire global is:

<style type="text/css">
a:hover {color:#FFFF00; text-decoration:underline;}
a:active {color:#660066; text-decoration:none;}
a:link {color:#660066; text-decoration:none;}
a:visited {color:#660066; text-decoration:none;}
</style>

and it is called on every page (and does most of it's job on every page.) Could another global be interfering?

P.s. I just tried background: #FFFF33; on my hover css and it worked just fine. Just no underline and color change.

Last edited by:

Evoir: Aug 9, 2002, 12:00 AM
Quote Reply
Re: [Evoir] Dumb CCS question In reply to
Sorry, I should of been clearer. I was hoping you could attach the source for the entire HTML page.
Quote Reply
Re: [Aki] Dumb CCS question In reply to
If you don't mind, I'll PM you.
Quote Reply
Re: [Evoir] Dumb CCS question In reply to
In Reply To:
I have the following ccs in my globals:

<style type="text/css">
body {font-family: Arial, Helvetica, sans-serif;}
a:hover {color: #FFFFFF; text-decoration: underline}
a:active {color: #660066; text-decoration: none}
a:link {color: #660066; text-decoration: none}
a:visited {color: #660066; text-decoration: none}
</style>

Well, for starters you won't see any rollovers in Netscape 4.7, but it should work in Explorer. Try adding a ; after "none" and "underline" in the above code, I'm pretty sure you need to end each item with a ;

Also, you might check your links in the source code of the built pages and make sure they are not already assigned a font color or a class. If they already have a class that will overide the above styles.

Bryan

Last edited by:

BryanL: Aug 9, 2002, 6:42 AM
Quote Reply
Re: [Aki] Dumb CCS question In reply to
Bryan, I didn't yet check your solution, but I did find one that works. A pal on another msg board gave me this, and it works just swell. Thanks for helping me out!

<style type="text/css" media="screen"><!--
a:link { color: #660066; text-decoration: none }
a:visited { color: #660066; text-decoration: none }
a:hover { color: #FFFF00; text-decoration: underline }
a:active { color: #660066; text-decoration: none }
--></style>

Last edited by:

Evoir: Aug 9, 2002, 7:12 PM