How not to underline Hyperlink?

J

James

I need to include a Hyperlink (text) but i do not want it underline, is it
possible?

Thanks,
Jaime
 
P

Paul S. Wolf

Murray said:
Yes.

<a href="foo.html" style="text-decoration:none">Link</a>

Which can be achieved in Design View (in FP2003 at least) by
highlighting the link and clicking the Underline button or CTRL-U.

OTOH, since 99%+ of hyperlinks are visible and identifiable to the user
by the underline, it always baffles me to see this question. Why HIDE
the link?
 
M

Murray

As for removing underlines, I do this frequently in menus. See the menu on
my site, for example -

http://www.great-web-sights.com

As for clicking the underline button - well, shut my mouf! Ain't that a
curiosity?

I have this code on my page -

<a href="http://www.domain.com">www.domain.com</a>

I click in it (and note that the underline icon is ALREADY depressed), and
click the underline icon and I get this -

<a href="http://www.domain.com"><span style="text-decoration:
none">www.domain.com</span></a>

which would indeed remove that underline.

This seems unusual to have such duality on a single common user widget!
 
P

Paul S. Wolf

Murray said:
As for removing underlines, I do this frequently in menus. See the menu on
my site, for example -

http://www.great-web-sights.com

As for clicking the underline button - well, shut my mouf! Ain't that a
curiosity?

I have this code on my page -

<a href="http://www.domain.com">www.domain.com</a>

I click in it (and note that the underline icon is ALREADY depressed), and
click the underline icon and I get this -

<a href="http://www.domain.com"><span style="text-decoration:
none">www.domain.com</span></a>

which would indeed remove that underline.

This seems unusual to have such duality on a single common user widget!

I hadn't thought of menus. That makes sense.

As for the "duality of the underline button, It's not really a dual
function. Think of it as a toggle for ANY underlining (which it is).

In PLAIN text, CTRL-U or the underline button turns the underline on or
off (i.e. adds or deletes <u> </u>), depending on whether the text is
currently underlined. For LINK text, it does the same thing (i.e. adds
or deletes style="text-decoration: none") thus turning the underline off
or on.

It's just that the default for plain text is to NOT underline, and for
link text the default is to underline, which FP indicates by showing the
button/icon depressed as you noticed.
 
T

Thomas A. Rowe

I turn off underlining for the entire page, then underline text within a paragraph, unless I choose
to bold the link. As long as you are consistent throughout the site, then users shouldn't have nay
problems knowing which text is a hyperlink.

The worse thing is developer that underline text that is not a hyperlink.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
T

Trevor L.

Or add this

<head>
.......
<style type="text/css">
a {text-decoration:none}
</style>
..........
</head>

Or you can put it in an external style sheet
--
Cheers,
Trevor L.


I choose Polesoft Lockspam to fight spam, and you?
http://www.polesoft.com/refer.html
 
M

Murray

That's certainly how I would do it. Using the underline icon seems like an
abomination to me! 8)
 
T

Thomas A. Rowe

I would use the CSS below to turn it off in the page, then use the underline icon to turn it on
where I have a link in a body of text.

--
==============================================
Thomas A. Rowe (Microsoft MVP - FrontPage)
WEBMASTER Resources(tm)

FrontPage Resources, WebCircle, MS KB Quick Links, etc.
==============================================
 
R

Richard0411

Murray ... I'm something of an HTML neophyte, so it's not clear where I
should insert your suggested line below, except between the two <head> tags
as suggested in a later posting to this thread. I did that,but it had no
effect.

Richar
----------------------------------------------------------------------------------------
 
M

Murray

That's the code for the link itself. It would go on the page (between
<body> and </body>) where you wanted the non-underlined link to appear. The
word "Link" below would be replaced with your fancy shmancy text about the
link, e.g., "click here to marry Avril Lavigne"! 8)
 
Top