homepage Welcome to WebmasterWorld Guest from
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

Msg#: 4518050 posted 3:32 pm on Nov 11, 2012 (gmt 0)

How do I make currentairline display in RED?

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




Msg#: 4518050 posted 4:02 pm on Nov 11, 2012 (gmt 0)

Got it

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


WebmasterWorld Senior Member lucy24 us a WebmasterWorld Top Contributor of All Time Top Contributors Of The Month

Msg#: 4518050 posted 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
#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