homepage Welcome to WebmasterWorld Guest from 54.226.191.80
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / CSS
Forum Library, Charter, Moderators: not2easy

CSS Forum

    
Display ['currentairline'] in RED
Scotty13




msg:4518052
 3:32 pm on Nov 11, 2012 (gmt 0)

How do I make currentairline display in RED?

<?php echo htmlentities($post['currentairline']) ?>

Thanks,
Scotty

 

Scotty13




msg:4518055
 4:02 pm on Nov 11, 2012 (gmt 0)

Got it

<?php echo "<font color=\"red\">".htmlentities($post['currentairline'])."</font>" ?>

lucy24




msg:4518172
 2:30 am on Nov 12, 2012 (gmt 0)

And when you say "font color = 'red'" you mean, of course, "span class = 'currentairline'" accompanied by appropriate line in the CSS, thereby
#1 getting rid of a wildly deprecated formulation
and
#2 giving yourself the option of highlighting the text in some other way after you discover that some users are interpreting the red text as a warning.

:)

Global Options:
 top home search open messages active posts  
 

Home / Forums Index / Code, Content, and Presentation / CSS
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved