how to color cells based on condition in apex
CSS -- INLINE .email-red-box { background-color: #ffcdd2; color: #b71c1c; font-weight: bold; padding: 6px 10px; border-radius: 4px; text-align: center; } .email-green-box { background-color: #c8e6c9; color: #1b5e20; font-weight: bold; padding: 6px 10px; border-radius: 4px; text-align: center; } SELECT hou.name, cust_mail.party_name, cust_mail.account_number, cust_mail.invoice_number, cust_mail.invoice_date, cust_mail.amount, cust_mail.creation_Date, cust_mail.email_address, CASE WHEN cust_mail.EMAIL_STATUS = 'EMAIL DELIVERED' THEN '<div class="email-green-box">EMAIL DELIVERED</div>' ELSE '<div class="email-red-box">EMAIL NOT DELIVERED</div>' END...