Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

html code to get highlight with hyperlinks ?

0 views
Skip to first unread message

Dave

unread,
Aug 7, 2001, 6:45:47 AM8/7/01
to
I have about 6 or 7 text links on a webpage. What di I put and exactly where
to have them highlighted in red ? TIA


Dave

unread,
Aug 7, 2001, 6:46:53 AM8/7/01
to
I should add only when the mouse passes over these links

Dave <d...@gmx.co.uk> wrote in message
news:9kogp0$5t28v$1...@ID-17549.news.dfncis.de...

Jake Marx

unread,
Aug 7, 2001, 1:43:14 PM8/7/01
to
Hi Dave,

You can use style sheets (CSS) to do this. Here's an example:

<style type="text/css">
<!--
a
{
color: #0000ff;
text-decoration: none
}
a:hover
{
color: #ff3300;
text-decoration: underline
}
// -->
</style>

Just paste that code in your <head> block and it will apply to all
hyperlinks in your page. This "turning red and underlining while hovering"
won't work in NN 4.x browsers, but it will work in most newer browsers. If
you have a lot of style definitions, it's cleaner to put them in a separate
file (usually named with a .css extension) and link to it from your page(s).
For more information on CSS, check out this link:

http://www.w3schools.com/css/default.asp

Regards,

Jake Marx
www.longhead.com

"Dave" <d...@gmx.co.uk> wrote in message
news:9kogp0$5t28v$1...@ID-17549.news.dfncis.de...

0 new messages