Hyperlink underline

  • Thread starter Steve Wolstenholme
  • Start date
S

Steve Wolstenholme

How do I make the underline appear when the mouse pointer is over the
hyperlink?

Steve

--
Steve Wolstenholme Neural Planner Software Ltd

EasyNN-plus. The easy way to build neural networks.

http://www.easynn.com
 
R

Ronx

Add some CSS to the <head> section of the page, just before </head>

<style type="text/css>
a {text-decoration: none;} /*makes the underline disappear for all
links*/
a:link {color: blue;}
a:visited {color: purple;}
a:active {color: red;}
a:hover {color: green; text-decoration: underline;} /*underlines links
when hovered over */
</style>
</head>

This will affect every text link on the page. Change the colours to
suit your design.

--
Ron Symonds - Microsoft MVP (FrontPage)
Reply only to group - emails will be deleted unread.

http://www.rxs-enterprises.org/fp

FrontPage Support: http://www.frontpagemvps.com/
 
S

Steve Wolstenholme

Add some CSS to the <head> section of the page, just before </head>

Added the CSS as suggested but the whole page disappears, not just the
underlines. Any idea why this could happen?

Steve

--
Steve Wolstenholme Neural Planner Software Ltd

EasyNN-plus. The easy way to build neural networks.

http://www.easynn.com
 
M

Murray

Added the CSS as suggested but the whole page disappears

It should be (some corrections, and some enhancements) -

<style type="text/css">
a { text-decoration: none;color:blue; } /*makes the underline disappear for
all links*/
a:visited { color: purple; }
a:hover { color: green; text-decoration: underline; } /*underlines links
when hovered over */
a:active { color: red; }
</style>
 
P

P@tty Ayers

Ronx said:
Yes - a typo. Sorry.

Change
<style type="text/css>
To
<style type="text/css">
Note the closing quote (").

Also, you don't want to paste in the closing </head> tag.

And to work properly, the elements need to be in this order: a:link,
a:visited, a:hover, a:active.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top