Sijun Forums Forum Index
Log in to check your private messages
My Profile Search Who's Online Member List FAQ Register Login Sijun Forums Forum Index

Post new topic   Reply to topic
   Sijun Forums Forum Index >> Digital Art Discussion
View previous topic :: View next topic  
Author   Topic : "rEmoving underlines in links in Dreamweaver?"
Lunatique
member


Member #
Joined: 27 Jan 2001
Posts: 3303
Location: Lincoln, California

PostPosted: Sat Jun 08, 2002 8:52 am     Reply with quote
I'm doing a major update for my website, and I can't seem to remember how to make links in text withOUT the underline. Somebody help?
Back to top
View user's profile Send private message Send e-mail Visit poster's website
eyewoo
member


Member #
Joined: 23 Jun 2001
Posts: 2662
Location: Carbondale, CO

PostPosted: Sat Jun 08, 2002 9:06 am     Reply with quote
Best way is to use styles. The CSS syntax is:

text-decoration: none;

Here's some CSS code that will turn all underlines off except if the cursor passes over a link. Then, because of the hover, the line will appear and the text will turn red becsuae of the color tag.


a:link { text-decoration: none; }
a:visited { text-decoration: none; }
a:active { text-decoration: none; }
a.hover { text-decoration: underline; color: red }

You can put the code at the top of each html file between <style> </style> tags or put them in a separate file and include a pointer to that file in the <head></head> section for each html file.
The latter is the best way, because any change to a style will then automatically propigate throughout the website or within any HTML file that has the pointer. If you save the above CSS code to a file named luna.css, then the code that should be in the <head> section of each HTML file should look like this.

<link rel="stylesheet" href="luna.css" type="text/css">

As each HTML file opens with that line in its <head> section, the browser will find the luna.css file and apply all the CSS code to the HTML.

Hope that helps...

[ June 08, 2002: Message edited by: eyewoo ]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
pixelsoldier
member


Member #
Joined: 18 Dec 1999
Posts: 728
Location: Ontario

PostPosted: Sat Jun 08, 2002 9:32 am     Reply with quote
I was gonna say exactly what Phil just said, but it was going to be far less graceful and full of much more useless babble.

So in the spirit of minimalism, I will end this post now. :P
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Lunatique
member


Member #
Joined: 27 Jan 2001
Posts: 3303
Location: Lincoln, California

PostPosted: Sat Jun 08, 2002 9:32 am     Reply with quote
That's just what the doctor ordered!

Thanks!

But, with your way, do I still get the little hand cursor when it passes over the text-links?

[ June 08, 2002: Message edited by: Lunatique ]
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Dr. Bang
member


Member #
Joined: 04 Dec 2001
Posts: 1425
Location: DENHAAG, HOLLAND

PostPosted: Sat Jun 08, 2002 9:55 am     Reply with quote
yes you prostitude!@!!!!!!!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Sijun Forums Forum Index -> Digital Art Discussion All times are GMT - 8 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




Powered by phpBB © 2005 phpBB Group