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 5 of 5

Thread: text

  1. #1
    New to the CF scene
    Join Date
    Jul 2005
    Posts
    2
    Thanks
    0
    Thanked 0 Times in 0 Posts

    text

    im having problems with my text coloring... isnt there some script that i can type before and after the text to color it? if yes please let me know... THANK YOU

  • #2
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    The <span style="color:red">text here</span> is red?

  • #3
    Senior Coder JamieR's Avatar
    Join Date
    Oct 2004
    Location
    United Kingdom
    Posts
    3,161
    Thanks
    0
    Thanked 5 Times in 5 Posts
    that'd work, but wouldn't the hex be a more *semantic* way of doing things? (red = #FF0000)

  • #4
    Senior Coder
    Join Date
    Dec 2004
    Location
    Essex, UK
    Posts
    2,636
    Thanks
    0
    Thanked 0 Times in 0 Posts
    lol, if you're being picky then yes... and why don't we in fact make a class as well?!

    span.redtext { color: #F00 }

    <span class="redtext">Red!</span>

  • #5
    Regular Coder
    Join Date
    Nov 2004
    Location
    The Netherlands
    Posts
    551
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by weazel
    that'd work, but wouldn't the hex be a more *semantic* way of doing things? (red = #FF0000)
    If you want to be semantic, you should use functions of the class.

    p.ErrorMessage { color:red; font-weight:bold; }

    <p class="ErrorMessage">ERROR 404!!!</p>

    I advice you to read a tutorial about classes, id's and how css works.
    http://css.maxdesign.com.au/selectutorial/index.htm
    CATdude about IE6: "All your box-model are belong to us"


  •  

    Posting Permissions

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