Forum Moderators: open

Message Too Old, No Replies

         

Tone

11:58 am on Jan 29, 2002 (gmt 0)

10+ Year Member



Probobly very simple but I'm missing the trick. Adding color to text in my editor is fine but when I upload the page to the site then there's no color to be seen. Background colors are fine but trying to change the font colour just does n't seem to be working.Can anyone help. Thanks. Tone.

wardbekker

12:21 pm on Jan 29, 2002 (gmt 0)

10+ Year Member



check the sourcecode. If you color a piece of text red for example, it should read:

<font color="#FF0000">put your text here</font>

Marshall

12:26 pm on Jan 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



wardbekker,

I assume it was a typo, but there should only be one # symbol.

DaveN

12:27 pm on Jan 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<FONT color="#FF0000">this is red</FONT>

just one hash and alot has been said for just using #ffo

DaveN

wardbekker

12:57 pm on Jan 29, 2002 (gmt 0)

10+ Year Member



yupz...typo ;-)

joshie76

4:59 pm on Jan 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Worlds quickest (and least informative) introduction to CSS (Cascading Style Sheets)

If in the head of your document you can add the following:

<style>
<!--
.redtext
{
color:#FF0000;
}
-->
</style>

And then anywhere on the page where you want to make your text red simply do as follows:

this is text and <span class="redtext">this bit is red</span>.

Now, if you decide you don't like the colour, you only have to change the #FF0000 in the head of your document as opposed to every <font> tag... even better you can even link into a CSS document - then you only need to change the colour once for your whole website. If I was you I'd take the rest of today (and tomorrow) learning CSS. It'll save you much more time in the long run. These should get you started:

[htmlhelp.com...]
[w3schools.com...]

Or just search for 'CSS'.

bruhaha

5:32 pm on Jan 29, 2002 (gmt 0)

10+ Year Member



Seeing a sample of the code you say works in your editor but not the web might be the easiest way for us to sort this out. You might give us the URL of the web page--so we can check the source --and let us know where you are expecting color.

Short of that, we might be better able to guess at the problem with details like the following:

1) Which editor are you using? That could be part of the problem. With some WYSIWYG editors (it sounds like that's what you're using)it is very easy to end up with numerous nested font tags that are redundant, a pain to sort out, and make mistakes much more likely.

2) What are you using to view your files on your own machine and then on the web? Is it the same browser, or are you using a different, internal browser with the editor?

3) What colors are you trying to display and what method (code) are you using to indicate these colors?

mivox

6:32 pm on Jan 29, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



You might give us the URL of the web page--so we can check the source

Actually, it would be better if you just copy and pasted the bit of HTML code surrounding the colored text in question.

In general, WebmasterWorld tries to avoid having a lot of site links and site specific questions posted... But if you post a code snippet in the thread, anyone who may have to same problem in the future can read it and find out the answer. :)

Tone

5:19 pm on Jan 30, 2002 (gmt 0)

10+ Year Member



Thanks to everyone for your suggestions. Followed "Josie76" message and the coloured text appeared.

Tone.

joshie76

5:24 pm on Jan 30, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Josie?? Who's Josie? ;)