English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

Is there a html code that exists that prevents the links on my website from being a) underlined and b) a different colour from my text?

Basically I want all the text to be the same colour and format, despite having active links.

2007-05-18 17:17:52 · 6 answers · asked by zweiundzwanzig 2 in Computers & Internet Other - Computers

6 answers

You could do this
put the following between your tags


OR
you could just do this
if you just want to do it on 1 or 2 links


you would use option 1 if you wanted that for all links!

Joe

2007-05-18 17:27:41 · answer #1 · answered by Anonymous · 0 0

If you manage all your different text styles with Cascading Style Sheets (you should), it's pretty easy. Create a link style that overrides the underlining that links default to, and sets the color the same as the other text. First the "body text" style, then the "link" style:



using regular text, set up a block like the following, and the link tag inside will inherit the bodytext attributes and override the underlining of links:

text here link here more text here



The chunk can go in the section of the document. Or use a separate stylesheet.

2007-05-18 17:34:04 · answer #2 · answered by Chris H 3 · 0 0

That is strange that it displays the underline, I don't do anything with CSS and there is no underline under my links. Also to make 2 different style links just add divs around the link and in the CSS give styles for the link.

2016-05-17 07:27:39 · answer #3 · answered by ? 3 · 0 0

Check these out.

http://www.permadi.com/tutorial/remLinks/index.html

How to Set the Color for Links in a Web Page You Design
http://www.ehow.com/how_10009_set-color-links.html

Also, Tools, Internet Options, Color

2007-05-18 17:34:52 · answer #4 · answered by TheHumbleOne 7 · 0 0





Put that at the top (or just in your CSS if you know where/what that is) and all your links will have no underline and you can replace the color with whatever you want. (#000000 is black).

2007-05-18 17:30:51 · answer #5 · answered by Alex F 1 · 2 0

Link Text

2007-05-18 17:32:09 · answer #6 · answered by Anonymous · 0 0

fedest.com, questions and answers