CSS works in preview but not on website

liunx

Guest
When I run the 'Preview' function on FrontPage 2002 the CSS works fine. When I publish to my site <!-- m --><a class="postlink" href="http://www.optioncaddie.com/test.htm">http://www.optioncaddie.com/test.htm</a><!-- m --> it has errors.

I am a novice and can't figure it out.Did you remember to upload your CascadeMenu.css along with your page?No, I did not. As I said, novice.

Now how do I change the font color and the color the background changes to when the cursor goes over a link? It is so badly colored you can't read the links.Put this CSS below the code for the anchor class:

a:hover {
color: blue;
background-color: red;
}

AdamNovice.

What is or where is "below the code for the anchor class:"I woul just suggest instead of color:blue put color:black - it would be more visible on the skyblue backgroundTry this: put this into your *.css stylesheet:

a.nav {color: black;}
a.nav:hover {color: red;background-color: grey;}


Then edit your link reference (for example, for Refco Express, in your html as follows:

<a TARGET="_blank" href=http://www.webdeveloper.com/forum/archive/index.php/"http://www.futuresorders.com/refco/cgi-bin/GetFrames" class="nav">

see what happens.Yes, if you want to apply it to all links automatically do this:

a {color: black; background-color: transparent;}
a:hover {color: red;background-color: grey;}

The section starting "a" is what I meant by "the code for the anchor class".

Adam

P.S. I know red/blue is an awful colour scheme, but I just needed some colour constants to demonstrate the use of the code.Ok. I know what the *.css is but where exactly do I put

a.nav {color: black;}
a.nav:visited {color: black;}
a.nav:hover {color: red;background-color: grey;}

After BODY
After .menuBar
??doesn't matter

That superdark blue and white you just put in look good in contrast.AdamGundry is right: what I've suggested will change only links with class="nav", leaving you an option of having unclussified links to appear standard.

If you use what AdamGundry suggested, you'll get uniformed links (that unclussified) by default throughout your document.

I agree that red/blue is an awful combination, which is also constantly abused, but it's good to play with.So I add this anywhere to the *.css file to change colors?

a {color: black; background-color: transparent;}
a:hover {color: red;background-color: grey;}YESOK. Got the colors working and now the menu drop down stays down even when the cursor isn't on the link.

<!-- m --><a class="postlink" href="http://www.optioncaddie.com/test.htm">http://www.optioncaddie.com/test.htm</a><!-- m -->
 
Back
Top