[thelist] text links
Joe Crawford
jcrawford at avencom.com
Tue Mar 27 19:40:06 CST 2001
jami mccabe wrote:
> Hi - i'm having a problem with my text links in FP2000. the script i put in
> (below) works fine in Eversoft (but I'm not capable of making my whole site
> by hand) and it worked when a friend published it to her web. It even works
> as long as my page is in a folder in FP and not a web. Soon as I put it into
> a web, I get some underlined links, not all, and some a color that isn't
> specified anywhere. Has anyone had this problem -am I doing something really
> DUMB?? Help Please! I was supposed to have this site up this week... Thanks!
> <style>
> <!--
> A:hover {text-decoration: none; color:#FF0000;}
> A:link {text-decoration: none; color:#999999;}
> A:visited (text-decoration: none; color:#999999;)
> -->
> </style>
I'd have to see it in action -- but can say you have some things which
catch my eye:
* for your visited links, are those parentheses?
* I don't think it's required, but I think you want a
space after "color:"
* be sure to specify the type "text/css" for your stylesheet.
* I'm not 100% sure, but doesn't the closing comment tag
need to have a // comment? Again, not sure on that, just my habit
* there's an efficiency you can get by adding a generic <a> tag style
and put the text-decoration there.
So your code, spiffied up would be:
<style type="text/css">
<!--
a {
text-decoration : none; }
a:hover {
color : #ff0000;
background-color : transparent; }
a:visited {
color : #999999;
background-color : transparent; }
a:link {
color : #999999;
background-color : transparent;}
//-->
</style>
And done that way (with the transparent background colors) -- the w3c
stylesheet validator loves it! :-)
http://jigsaw.w3.org/css-validator/validator-text.html
Now, what FrontPage will do with it I don't know.
HTH,
Joe
--
Joe Crawford |||||||||||||| mailto:jcrawford at avencom.com
|||||||||||||||||||||||| http://www.avencom.com
||||||||||||||||||||||||||| Avencom: Set Your Sites Higher
More information about the thelist
mailing list