How do I use HTML to change text color?

7 replies
Hello,

I am trying to add the right code to a specific text to change the color of it....can anyone fill me in?

Thank!
#change #color #html #text
  • Profile picture of the author VMN
    Signature

    Inside Wealthy Affiliate
    Follow VictoriaNTC On Twitter!

    {{ DiscussionBoard.errors[1761002].message }}
  • Profile picture of the author Dennis Gaskill
    The best way to do it depends on the text you want to change. Is it for a whole page, a paragraph, a single word, a heading tag, a division tag...or what?
    Signature

    Just when you think you've got it all figured out, someone changes the rules.

    {{ DiscussionBoard.errors[1761010].message }}
    • Profile picture of the author fredjr1978
      Originally Posted by Dennis Gaskill View Post

      The best way to do it depends on the text you want to change. Is it for a whole page, a paragraph, a single word, a heading tag, a division tag...or what?
      Its for some text that are at the footer of my page
      {{ DiscussionBoard.errors[1761029].message }}
      • Profile picture of the author Dennis Gaskill
        Originally Posted by fredjr1978 View Post

        Its for some text that are at the footer of my page
        Do you use an external style sheet?

        As soon as I know that I'll give you the correct code.
        Signature

        Just when you think you've got it all figured out, someone changes the rules.

        {{ DiscussionBoard.errors[1761033].message }}
        • Profile picture of the author fredjr1978
          Originally Posted by Dennis Gaskill View Post

          Do you use an external style sheet?

          As soon as I know that I'll give you the correct code.
          Im not sure what you mean by that. here is the website I am wanting to make changes to: Building Your Business Online
          {{ DiscussionBoard.errors[1761202].message }}
          • Profile picture of the author imintern
            Try this -

            Code:
             
            <a href="http://www.bybonline.info" target="_blank" style="color:#009900;">Building Your Business   Online</a>
            It will make the text look like Building Your Business Online


            You have to do edit the html source code, obviously. Replace the hsx color code (#009900) to get the color you wish to have. For example, #FF0000 is for red.
            {{ DiscussionBoard.errors[1761310].message }}
  • Profile picture of the author Istvan Horvath
    That's not how it should be done in a WP theme...

    Everything relating to your footer area is defined by this code in the style.css:
    Code:
    #footer {
        clear: both;
        width: 990px;
        font: 11px Arial, Helvetica, sans-serif;
        background: url(images/footer.png) no-repeat left top;
        height: 80px;
        text-align: center;
        padding-top: 30px;
        color: #CCCCCC;
    }
    #footer a {
        color: #CCCCCC;
    }
    #credit {
        color: #999999;
        margin-top: 8px;
    }
    #credit a {
        color: #999999;
        text-decoration: underline;
    }
    In the footer.php the visible text is either in the footer div or in the credit div.

    The #credit a and the #footer a, respectively, defines the color of the anchor tag (a.k.a. link) in those divs.

    Now, just find website with all the color hex codes... and play with the values.
    Signature

    {{ DiscussionBoard.errors[1761344].message }}

Trending Topics