Solved

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

Posted on 2013-05-12
2
343 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

Live: Real-Time Solutions, Start Here

Receive instant 1:1 support from technology experts, using our real-time conversation and whiteboard interface. Your first 5 minutes are always free.

Question has a verified solution.

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

Today, I was working on some optimization and spam-stopping techniques when I encountered Ben Nadel's post to reduce spam feature using Math (http://www.bennadel.com/blog/197-How-I-Stop-Spammers-On-My-ColdFusion-Blog.htm). While this method is not o…
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 Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
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…

774 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