Hyperlinks WITHOUT underlining? How?

Joined
May 17, 2008
Messages
2
Reaction score
0
Points
1
I can't seem to find a 100%-working method for taking the underline out of my hyperlinks within iWeb and still have them behave as hyperlinks. I believe I've tried everything, but obviously I haven't, as no one else's websites have all the links underlined. Here is what hans't worked:

1. Highlight active link > Font Tool > "underline text" tab > set to "none"
2. Highlight active link > Format menu > Font > uncheck "underline"

And, while we're at it, in January, someone offered a solution for changing the font color of active hyperlinks:

http://www.frogdance.dundee.ac.uk/Fr...inkShader.html

That link no longer works.

What am I missing? Thanks in advance!

Ron
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
do you want to do it globally (for all links) or to a specific stylesheet
 
Joined
Oct 22, 2007
Messages
8,967
Reaction score
287
Points
83
Location
London
Your Mac's Specs
Mac Mini Core i7 2012 | White 2009 MacBook 2 Ghz | 733 Mhz G4 Quicksilver
to do it for all links on your webpage

Put this code in to the pages code (you will need to do this with a text editor), place it immediately before the line thats says </head>

It should look like this

<style type="text/css">
A:link {text-decoration: none; color: white;}
A:visited {text-decoration: none; color: white;}
A:active {text-decoration: none; color: white;}
A:hover {text-decoration: underline; color: red;}
</style>
</head>


AS a side note if you want it to effect a specific style sheet you create custom hperlink tags, in the below example they would only effect the style called Vacmore

.Vacmore {
color: white;
text-align: right;
vertical-align: top;
font: 13px Arial, Helvetica, sans-serif;
}

.Vacmore A:link {text-decoration: none;
color: white;
}
.Vacmore A:visited {text-decoration: none;
color: white;
}
.Vacmore A:active {text-decoration: none;
color: white;
}
.Vacmore A:hover {text-decoration: underline;
color: white;
}
 
Joined
Mar 16, 2008
Messages
645
Reaction score
22
Points
18
Location
Twin Cities (Suburbs) Minnesota
Your Mac's Specs
 15" 2.4 MBP  iPod Classic 80 GB, Silver
O, the joys of CSS :) I will marry it one day.
 
Joined
May 23, 2008
Messages
76
Reaction score
4
Points
8
Your Mac's Specs
2.0GHz Aluminium MacBook
You can change the code to the following to cut down on the amount of code that needs to be writen and processed:

<style type="text/css">
A:link, A:visited, A:active {text-decoration: none; color: white;}
A:hover {text-decoration: underline; color: red;}
</style>
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top