Welcome to the MacNN Forums.

If this is your first visit, be sure to check out the FAQ by clicking the link above. You may have to register before you can post: click the register link above to proceed. To start viewing messages, select the forum that you want to visit from the selection below.

You are here: MacNN Forums > Software - Troubleshooting and Discussion > Developer Center > Link Formatting

Link Formatting
Thread Tools
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
May 11, 2003, 04:21 PM
 
i'm throwing a site together for some friends of mine's band website and they asked me something which i had never considered before.

"can't you take the underlines away from the links?"

and it occured to me that i didn't know how to do this. perhaps someone could enlighten me? i'm sure its really simple but its just never something i've done so i never considered how it might be accomplished ya know?

any advice would be great

cheers
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Senior User
Join Date: Feb 2001
Location: Chattanooga, TN
Status: Offline
Reply With Quote
May 11, 2003, 08:09 PM
 
Google for CSS references. This is off the first page I found for a quick reference. Shamelessley ripped from http://www.webmasterkorner.com/css.html

Replace the [ with <...] with a >...

To remove the underline from a link use this tag on your HTML document.
[a href="http://www.webmasterkorner.com" style="text-decoration: none"]Home Page[/a]

To remove the underline on all links on your document add this code within your [head] and [/head] tags of your HTML document.

[Style][!-- A{text-decoration:none} --][/Style]

"Or you could use this code within your [head] and [/head] tags of your HTML document.

[Style type="text/css"][!--
A:link{color:blue;text-decoration:none}
A:visited{color: purple;text-decoration:none}
A:active{color:hotpink;text-decoration:none}
A:hover{color:hotpink;text-decoration:none}
--][/Style]

To remove the underline using an external CSS document use the code:

a:link { color: blue; text-decoration:none; background-color: transparent; }
a:visited { color: purple; text-decoration:none; background-color: transparent; }
a:active { color: hotpink; text-decoration:none; background-color: transparent; }
a:hover { color: hotpink; text-decoration:none; background-color: transparent; }
(Last edited by malson; May 11, 2003 at 08:17 PM. )
Yeah, about those TPS reports, didn't you get the memo?
--------------
2.3 Ghz Dual-Core G5/20" LCD/Life is Good!
Moo...
     
ntsc  (op)
Senior User
Join Date: Sep 2000
Location: Glasgow, Scotland UK
Status: Offline
Reply With Quote
May 12, 2003, 10:42 AM
 
thank you - that worked a treat!
"You can't waste a life hating people, because all they do is live their life, laughing, doing more evil."

-ALPHA ROBERTSON,whose daughter was one of four girls killed in the bombing of a Birmingham, Ala., church in 1963.
     
Grizzled Veteran
Join Date: Nov 2001
Location: Oregon
Status: Offline
Reply With Quote
May 13, 2003, 02:30 PM
 
Replace the [ with &lt;...] with a &gt;...
Well, if you mean "&lt;", then why not just say "&lt;"?* &nbsp;
Code:
To remove the underline from a link use this tag on your HTML document. &lt;a href="http://www.webmasterkorner.com" style="text-decoration: none"&gt;Home Page&lt;/a&gt; To remove the underline on all links on your document add this code within your &lt;head&gt; and &lt;/head&gt; tags of your HTML document. &lt;Style&gt;&lt;!-- A{text-decoration:none} --&gt;&lt;/Style&gt; "Or you could use this code within your &lt;head&gt; and &lt;/head&gt; tags of your HTML document. &lt;Style type="text/css"&gt;&lt;!-- A:link{color:blue;text-decoration:none} A:visited{color: purple;text-decoration:none} A:active{color:hotpink;text-decoration:none} A:hover{color:hotpink;text-decoration:none} --&gt;&lt;/Style&gt; To remove the underline using an external CSS document use the code: a:link { color: blue; text-decoration:none; background-color: transparent; } a:visited { color: purple; text-decoration:none; background-color: transparent; } a:active { color: hotpink; text-decoration:none; background-color: transparent; } a:hover { color: hotpink; text-decoration:none; background-color: transparent; }
Looks better, doesn't it?

* Hint: &amp;lt; can be used to make a &lt;, and &amp;gt; can be used to make a &gt;.
     
Senior User
Join Date: Feb 2001
Location: Chattanooga, TN
Status: Offline
Reply With Quote
May 13, 2003, 07:03 PM
 
It was a quick cut and paste. Excuse me for not consulting my copy of the "Rainy Day Guide to Proper Forum Posting".
Yeah, about those TPS reports, didn't you get the memo?
--------------
2.3 Ghz Dual-Core G5/20" LCD/Life is Good!
Moo...
     
   
Thread Tools
Forum Links
Forum Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Top
Privacy Policy
All times are GMT -5. The time now is 03:32 PM.
All contents of these forums © 1995-2011 MacNN. All rights reserved.
Branding + Design: www.gesamtbild.com
vBulletin v.3.8.7 © 2000-2011, Jelsoft Enterprises Ltd., Content Relevant URLs by vBSEO 3.3.2