Jump to content


Photo
- - - - -

How Do I Change the Color of a Word or Phrase Inside a Post?


This topic has been archived. This means that you cannot reply to this topic.
9 replies to this topic

#1 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 June 2010 - 06:37 AM

How Do I Change the Color of a Word or Phrase Inside a Post? I've tried the normal html code: <font color="0066FF">word or phrase but it does not work. Thanks in advance! Angela

#2 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 June 2010 - 06:38 AM

Oh, I did close the tag with :-)

#3 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 09 June 2010 - 06:44 AM

Better practice would be:

Please Login or Register to see this Hidden Content


Thanks, Bryan

#4 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 June 2010 - 06:46 AM

if I already have <span style="font-size: xx-large;">, how do I implement the color in there? (and let me tell you where to send the bill...) :-)

#5 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 June 2010 - 06:50 AM

Okay, I just put your code right next to mine, and created another closed span tag. It worked! Not sure what best practice is, but if it works, I'm good :-) Thanks so much.

#6 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 09 June 2010 - 06:55 AM

Every time you open a tag you need to close it where you want the styling to stop.

Best practice means what is modern and currently standards compliant,

Please Login or Register to see this Hidden Content

will still work, but is out-dated, just a quick tip to help you sharpen your skills.

Thanks, Bryan

#7 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 09 June 2010 - 07:01 AM

you know how in the old school way you could put many features inside , i.e. face, size, color, etc.? In the more current span feature, how do you do the same? What does it look like? I tried combining my increased letter size span tag with my color span tag but it would never work, that is why I just did two separate span tags side-by-side.

#8 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 09 June 2010 - 07:07 AM

CSS (Cascading Style Sheets)

Please Login or Register to see this Hidden Content

is truly wonderful and you can do so much with it.

Here's an example of the most basic text stylings:

Please Login or Register to see this Hidden Content


You can add

Please Login or Register to see this Hidden Content

to almost anything. As you get better you'll want to start using classes and ids instead. And you can start governing almost anything from your stylesheet.

Any time you want to style something, just go ahead and ask.

Thanks, Bryan

#9 digang

digang

    Member

  • Members
  • PipPip
  • 27 posts

Posted 12 June 2010 - 01:25 AM

You have been such a great help - thank you, Bryan.

#10 bryan-hadaway

bryan-hadaway

    Advocate

  • Members
  • PipPipPipPipPip
  • 3697 posts

Posted 12 June 2010 - 07:02 PM

You're welcome, come back for help anytime. Thanks, Bryan