Purple/blue Text issues in html/php code

Discussion in 'Programming' started by fabregas, Jan 31, 2010.

  1. #1
    Hi, I have been working on some code thats in html/php and altho i have changed most the text color to what i would like there is some i cant seem to work out . this is a example of why

    <td width='35%'><?php echo $profile_class->formattedlastactive; ?></td>

    that is cos of the text that i need to be changed in color depends on what the person has in there profile ..the word can be 1 of many and where ever i put the <font color="000000"> code in im getting errors

    does any one know how i can sort this problem out?

    Thanks
     
    fabregas, Jan 31, 2010 IP
    NuLLByTe likes this.
  2. DivvyWork

    DivvyWork Peon

    Messages:
    81
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    why not do it like this:

    <td style='width:35%; color:<?php echo $profile_class->formattedlastactive_color; ?>;'><?php echo $profile_class->formattedlastactive_text; ?></td>

    you will need to modify your class so you can get the color with the $profile_class->formattedlastactive_color but that should be no big thing.

    Also this way your not using the old <font> tag either...
     
    DivvyWork, Jan 31, 2010 IP
  3. fabregas

    fabregas Greenhorn

    Messages:
    5
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    13
    #3
    ok i cant seem to sort this out myself as not sure what text to enter into the classes.

    will pay some one if they can sort out my text color issues. any one please contact me if you can do this job and i will show you all the areas that need changing and negotiate price.
    Thanks
     
    fabregas, Feb 3, 2010 IP
  4. NuLLByTe

    NuLLByTe Active Member

    Messages:
    382
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    80
    #4
    Problem solved.
     
    NuLLByTe, Feb 3, 2010 IP