Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CSS: Hyperlinks without underlines: Syntax of text decoration=none?)

Status
Not open for further replies.

gal

Programmer
Mar 5, 2002
25
US
I need to make Hyperlinks without underlines. Would like to use a stylesheet rather than put the style tag on each page. 1) Can I include the Syntax of anchor text decoration=none in a style sheet?

2) Can you use more than one stylesheet on a site?
3) Can you use and Include File with a style sheet meta tag?

Thanxx
 
try this for a example
a:active { background-color: RGB(100, 14, 107); text-decoration: none; }
a:hover { color: #000000; text-decoration: none; }
a:link { color: #000000; text-decoration: none; }
a:visited { visibility: hidden; } You cannot mandate productivity, you must provide the tools to let people become their best.
-Steve Jobs
admin@onpntwebdesigns.com
 
1) use onpnt's example

2) yes you can, just add more <link rel=&quot;&quot; ..> to the <head> of your page.
Beware of some styles overriding other ones if you use same names in different stylesheets. Separate them by their aims: for example, one is for text definitions, while another is for positioning.

3) this is how to do it:
<link rel=&quot;stylesheet&quot; type=&quot;text/css&quot; href=&quot;style_file.css&quot;>
If you use external CSS files you shouldn't place <style> </style> tags there.

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top