| View previous topic :: View next topic |
| Author |
Message |
andy.blx
Joined: 20 Dec 2005 Posts: 3 Location: Essex
|
Posted: Tue Dec 20, 2005 4:18 pm Post subject: HTML colour change |
|
|
I am trying to copy an HTML code from a site but the text colour is Black and so is my website background how can I change the text colour to #3333cc to match my website?
the code can be found at: http://www.javascriptkit.com/script/script2/worldpop2.shtml |
|
| Back to top |
|
 |
|
|
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Tue Dec 20, 2005 7:24 pm Post subject: Re: HTML colour change |
|
|
Hia
I think you should add it in this part here.
Current world population (estimated): <span id="worldpop" style="font-weight: bold"></span>.
so it would be.
Current world population (estimated): <span id="worldpop" style="font-weight: bold" "color: #3333cc" ></span>.
If that does not work one of the others will soon tell ya cos I am very new to computers myself. |
|
| Back to top |
|
 |
andy.blx
Joined: 20 Dec 2005 Posts: 3 Location: Essex
|
Posted: Tue Dec 20, 2005 7:33 pm Post subject: Re: HTML colour change |
|
|
Hi
thanks for the tip
I tried adding it but the text is still not visible so it must still be black it was worth a try though
Thank you again |
|
| Back to top |
|
 |
webmaster Site Admin

Joined: 17 Aug 2004 Posts: 3640 Location: Sweden
|
Posted: Tue Dec 20, 2005 8:39 pm Post subject: Re: HTML colour change |
|
|
johneva's solutions should just make the numbers in another color. This solution will make the whole row white:
| Code: |
| <font color="white">Current world population (estimated): <span id="worldpop" style="font-weight: bold;"></span>.</font> |
|
|
| Back to top |
|
 |
johneva 500+ Club

Joined: 29 Oct 2005 Posts: 561 Location: Stafford, England
|
Posted: Tue Dec 20, 2005 9:02 pm Post subject: Re: HTML colour change |
|
|
Doe yep silly me.  |
|
| Back to top |
|
 |
andy.blx
Joined: 20 Dec 2005 Posts: 3 Location: Essex
|
Posted: Wed Dec 21, 2005 12:35 pm Post subject: Re: HTML colour change |
|
|
Brilliant thank you all very much
you can see the population counter in use now on my webby @ www.andybollocks.co.uk
Thank you again
Happy Christmas to you all |
|
| Back to top |
|
 |
|