Solved

ColdFusion How can I add highlighting or bold to query results?

Posted on 2013-05-12
2
349 Views
Last Modified: 2013-05-12
How can I add a yellow highlight or other indicator for a number that results in a query that is larger than another number?

Example:
Query results:

Quantity Ordered     Quantity Received
           10                             14   (bold or highlighted desired)
           11                             11
0
Comment
Question by:DJPr0
2 Comments
 
LVL 14

Accepted Solution

by:
RickEpnet earned 500 total points
ID: 39159622
You can do something like this.

<cfset a = 7>
<cfset b = 6>
<cfoutput>
  <span style="color ##000000; background-color: <cfif a gt b>##FFFF00<cfelse>##FFFFFF</cfif>;">This is a TEST</span>  
</cfoutput>
0
 

Author Closing Comment

by:DJPr0
ID: 39160057
Thanks RickEpnet!
0

Featured Post

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This is an updated version of a post made on my blog over 3 years ago. It is unfortunately, still very relevant as we continue to see both SQLi (SQL injection) and XSS (cross site scripting) attacks hitting some of the most recognizable website and …
CFGRID Custom Functionality Series -  Part 1 Hi Guys, I was once asked how it is possible to to add a hyperlink in the cfgrid and open the window to show the data. Now this is quite simple, I have to use the EXT JS library for this and I achiev…
This video shows how to quickly and easily add an email signature for all users on Exchange 2016. The resulting signature is applied on a server level by Exchange Online. The email signature template has been downloaded from: www.mail-signatures…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question