byron2k12 Posted July 26, 2012 Share Posted July 26, 2012 I have used google search, only problem is that i am using code to create links "without" underlines at the moment, this is the html i am using for that: <p><a href="http://examplelink.com" style="text-decoration: none">Example Text</a></p> It works great but when i try to implement html link-colour codes for that, i get nothing. Can anyone help, thanks. Quote Link to comment Share on other sites More sharing options...
requinix Posted July 26, 2012 Share Posted July 26, 2012 Any reason you can't use non-inline CSS for it? Otherwise the only problem is... I guess... not using the right name? Hard to say without seeing what you tried. Quote Link to comment Share on other sites More sharing options...
Skylight_lady Posted August 1, 2012 Share Posted August 1, 2012 Can you not id or class a CSS to add the new styles with color:#000000 for a black colour? You really need to learn CSS for this. Google will help you. Quote Link to comment Share on other sites More sharing options...
mikhl Posted August 3, 2012 Share Posted August 3, 2012 Try using styles in the head of your HTML document or put them in a desperate file and link that to your document. In head of file: <style type="text/css"> a { text-decoration:none; color:#cc0000; } </style> Make sure in your CSS your are spelling colour as color. The American way. Quote Link to comment Share on other sites More sharing options...
mikhl Posted August 3, 2012 Share Posted August 3, 2012 When using inline CSS make sure you are ending each statement with a semicolon. <a href="#" style="text-decoration:none;color:#000000;">Link</a> However. If you are going to be using the same style on a number of different anchor links and or on a number of pages, it is best to use external style sheets. Quote Link to comment Share on other sites More sharing options...
hakimserwa Posted August 31, 2012 Share Posted August 31, 2012 I have used google search, only problem is that i am using code to create links "without" underlines at the moment, this is the html i am using for that: <p><a href="http://examplelink.com" style="text-decoration: none">Example Text</a></p> It works great but when i try to implement html link-colour codes for that, i get nothing. Can anyone help, thanks. lets see the code that doesnt work. Quote Link to comment Share on other sites More sharing options...
worrall Posted September 10, 2012 Share Posted September 10, 2012 I this would help you, the code goes as <body bgcolor="#000000" text="#FFFFFF" link="#0000FF"> . Quote Link to comment Share on other sites More sharing options...
requinix Posted September 10, 2012 Share Posted September 10, 2012 I this would help you, the code goes as . No. Those attributes are bad. Even inline CSS is better than those. Quote Link to comment Share on other sites More sharing options...
matthewtbaker Posted October 5, 2012 Share Posted October 5, 2012 Try using color instead of link-color. That should do the trick... Matt Quote Link to comment Share on other sites More sharing options...
Jessica Posted October 5, 2012 Share Posted October 5, 2012 Also, look into CSS rather than inline styles. Quote Link to comment Share on other sites More sharing options...
cpd Posted January 3, 2013 Share Posted January 3, 2013 Also, look into CSS rather than inline styles. Just wanted to emphasise this... 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.