|
scarednewbie -> RE: How to remove the underline from the Hyperlink (11/18/2002 23:46:27)
|
quote:
<style> <!-- A:link {text-decoration: none; color: #0000ff} A:visited {text-decoration: none; color: #0000ff} A:hover { text-decoration: none; color: #ff0000 } //--> </style> I found out more, well, I really, learned more, you can do it like this... <style> <!-- A:link {text-decoration: none; color: blue } A:visited {text-decoration: none; color: blue } A:hover { text-decoration: none; color: blue } //--> </style> Now, to be precise on your colors, use the color code, if you want red, green, aqua, etc. just type it in. Here also, you can do this like when your mouse goes over the text it gets bold, like so... <style> <!-- A:link {text-decoration: none; color: #0000ff } A:visited {text-decoration: none; color: #0000ff } A:hover { font-wieght: bold; text-decoration: none; color: #ff0000 } //--> </style> That font-wieght part gives it the poke. Also, some people complain that they want their link to be a certain color/type when the page is loading. That can be simply done by doing... <style> <!-- A:link { text-decoration: none; color: #0000ff } A:active { text-decoration: none; color: #0000ff } A:visited { text-decoration: none; color: #0000ff } A:hover { text-decoration: none; color: #ff0000 } //--> </style> I love myself, but you are also forgetting, you should do this... <STYLE TYPE=" text/css" > <!-- A:link {text-decoration: none; color: #0000ff} A:visited {text-decoration: none; color: #0000ff} A:hover { text-decoration: none; color: #ff0000 } //--> </style> See that type part, that gives it the knowledge to know you are using css. Some sites you NEED to put that on their otherwise the links won' work correctly.. Also, I have experienced this code not workinf 100% perfect with the visited part. Sometimes it doesn' t follow my visited command...
|
|
|
|