Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts

    CSS text inside div color help

    So I just want to change the color of my text inside my div how do I do that? Googled everywhere, but it only says how to change the link text etc. Help anyone?

  • #2
    Senior Coder jcdevelopment's Avatar
    Join Date
    Oct 2007
    Location
    Cowboy Nation
    Posts
    2,179
    Thanks
    174
    Thanked 257 Times in 257 Posts
    Code:
    div {
    color:#/*hexcode*/;
    }
    real world example
    Code:
    div {
    color:#ffffff;
    }
    or you can do this in your html

    Code:
    <div style="color:#ffffff;">
    </div>

  • #3
    New to the CF scene
    Join Date
    Mar 2007
    Posts
    4
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Thank you, works perfect now!

  • #4
    Regular Coder
    Join Date
    Jul 2008
    Posts
    195
    Thanks
    3
    Thanked 11 Times in 11 Posts
    Just a note: CSS also supports popular colors:
    Code:
    div {
    color:blue/red/green/ect..;
    }


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •