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? Link to comment https://forums.phpfreaks.com/topic/167448-underline-link/ Share on other sites More sharing options...
michalchojno Posted July 26, 2009 Share Posted July 26, 2009 You need CSS to change that. Link to comment https://forums.phpfreaks.com/topic/167448-underline-link/#findComment-882946 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> Link to comment https://forums.phpfreaks.com/topic/167448-underline-link/#findComment-882948 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> Link to comment https://forums.phpfreaks.com/topic/167448-underline-link/#findComment-882950 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". Link to comment https://forums.phpfreaks.com/topic/167448-underline-link/#findComment-882999 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.