Thread: What if CSS

    #1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Jul 2013
    Posts
    1
    Rep Power
    0

    What if CSS


    Hello,

    I'm trying to make the following work on a form:

    [if 318 equals="Priority 1"]<span style=”color: #red;”>[318]</span>[/if 318]
    [if 318 equals="Priority 2"]<span style=”color: #orange;”>[318]</span>[/if 318]
    [if 318 equals="Priority 3"]<span style=”color: #yellow;”>[318]</span>[/if 318]

    But i'm doing something stupidly wrong and it's not working, any advice would be great?
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Dec 2003
    Posts
    709
    Rep Power
    441
    Leave off the # before the color names. You only do that when you're defining colors with hex values.

    Comments on this post

    • DonR agrees : you beat me by 1minute ;)
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Novice (500 - 999 posts)

    Join Date
    Oct 2009
    Location
    Nebraska, USA
    Posts
    876
    Rep Power
    275
    Only the hexcode colors need the "#" in front of it...written colors like red, white, yellow, shouldn't have the # in front.

IMN logo majestic logo threadwatch logo seochat tools logo