Hovering Text - Help with Hovering Please (Posted by Hunter)

They have: 5,633 posts

Joined: Jan 1970

I saw a page with a text hover over the background. What is the code for this? The view source wasn't much help.

They have: 222 posts

Joined: Sep 1999

It's the Style tag...Heres an example

<HTML>
<Head><Title>Blah</Title></Head>
<Body>
<Style>
A:visited {color: darkblue}
A:link {color: blue}
A:active {color: black}
A:hover {color: gray}
</Style>

Page Content

</Body>
</HTML>

That just changes the color. You can add other attributes, like 'text-decoration: none' to have the link not be underlined. or 'text-decoration: bold' (I think, haven't used it personally, making an educated guess) to make it bold on hover... Oh, BTW, note that the style tag I gave as an example has move than just the hover, but you probably allready noticed that, you just need to pay attention to the hover one...

Hope that helps,
Ian

Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.