squiblo Posted July 26, 2009 Share Posted July 26, 2009 when using "a href=""" to link text to another page it automatically underlines the text that is being linked, what cud i use instead of "a href=""" to link to another page and not have the text underlined? Quote Link to comment Share on other sites More sharing options...
michalchojno Posted July 26, 2009 Share Posted July 26, 2009 You need CSS to change that. Quote Link to comment Share on other sites More sharing options...
sufian Posted July 26, 2009 Share Posted July 26, 2009 <style type="text/css"> <!-- a:link { text-decoration: none; } a:visited { text-decoration: none; } a:hover { text-decoration: none; } a:active { text-decoration: none; } --> </style> Quote Link to comment Share on other sites More sharing options...
newbtophp Posted July 26, 2009 Share Posted July 26, 2009 <a href="http://www.link.com" style="text-decoration:none">Link Name</a> Quote Link to comment Share on other sites More sharing options...
dbrimlow Posted July 26, 2009 Share Posted July 26, 2009 EXACTLY how Sufian shows you. The entire point of CSS is to keep styling out of your markup and into a css where it belongs (note the "sheet" in CSS), using inline style tags is the same as using font tags ... it just adds unnecessary "weight" to your code and is not part of a "CSS". Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.