Friday, September 23, 2011

HTML link colour change??

Hi,



Ive already asked this question but the answers didnt work.



The default colour of my text links on my page is white, but for a certain container I want them green. I have this but it doesnt work:



%26lt;div class=%26quot;style4%26quot; id=%26quot;text_container%26quot; style=%26quot;color:#339966%26quot;%26gt;



I need to force a colour change that overwrites the default of the page, how can I do this?HTML link colour change??change the hex code of the font ?

http://www.theodora.com/html_colors.htmlHTML link colour change??Have you tried the simple %26lt;text color=green%26gt; ??HTML link colour change??I aint sure but is it because you didn't put the semi-colon after the color setting?



%26lt;div class=%26quot;style4%26quot; id=%26quot;text_container%26quot; style=%26quot;color:#339966;%26quot;%26gt;HTML link colour change??In the head of the document, write:

%26lt;style%26gt;

a.gre{text-color: #339966 }

%26lt;/style%26gt;



Then for the links:

%26lt;a href=%26quot;link%26quot; class=%26quot;gre%26quot;%26gt;Link Text%26lt;/a%26gt;



That should work;HTML link colour change??http://www.webmonkey.com/reference/html_HTML link colour change??Use of stylesheets and even basic color codes can be found at htp://webmonkey,com/HTML link colour change??hmm..HTML link colour change??Get rid of the last part and just leave the



%26lt;div class=%26quot;style4%26quot; %26gt;(whatever part you want to change)%26lt;/div%26gt;



Then add the following code into your css codes.



.style4 { color: #339966;}



If that does not work then do this.



%26lt;a href=%26quot;URL%26quot; class=%26quot;style4%26quot;%26gt;name%26lt;/a%26gt;



Make the class part of your link



Most of the changes you will have to make will be in the css, not the html.