-
How to set background colour in <div> in Lightning Component in Salesforce?
I am trying to set my div background colour.
For example: <div class="c-container">, here is my .css
.THIS.c-container { background: #f8f8f8; }But background is not setting as the mentioned colour.
Log In to reply.
Popular Salesforce Blogs
Why Digital Transformation is Essential for Business Growth? | Salesforce Guide
With reports suggesting that worldwide spending on the technologies enabling digital transformation is forecast to reach $2.3 trillion (£1.8 trillion) in 2023, more and more…
Top 20 Factors To Consider When Choosing CRM For Small Business | Salesforce
Small or mid-sized businesses are renovating our nation’s economic structure. They have delivered a huge contribution towards its enhancement by generating a magnitude of job…
AIforce vs Agentforce: How Salesforce Is Changing CRM After Dreamforce 2026
Salesforce’s vision for CRM is changing significantly. The traditional CRM model was built around applications, screens, dashboards, records, and users manually moving through predefined workflows.…
Popular Salesforce Videos
Process Builder or Apex Triggers - Choosing Between Salesforce Automation Tools
The Salesforce Platform offers several means to operate in the background: Process Builder, Triggers, Flow, Workflows, and more. With so many robust options, it can…
Create and Format Derived Measures
In the explorer, you can perform calculations on existing measures and use the results to create a new measure that’s not part of your dataset.…
Salesforce Communities: 5 Powerful Ways to Drive Growth
Salesforce Communities are brand spaces designed specifically for Salesforce customers to connect with the community outside their org (i.e., employees, partners, and customers) and collaborate…
Popular Salesforce Infographics
DataArchiva - A Native Data Archiving App for Salesforce using Big Objects
A Native Data Archiving app for Salesforce using Big Objects. With Auto-scheduler, Custom Archiving, Encryption, Integrity and Restore features, DataArchiva saves 85%+ storage costs, improves…
10 MUST HAVE Qualities Your Salesforce Administrator Should Have
Does your organization have a Salesforce Admin? If you use Salesforce or are in the process of implementing it, the role of Salesforce Admin is…
In 2021, Keep An Eye On The Following Salesforce Trends
Salesforce is the most popular customer relationship management (CRM) software. Salesforce has solutions for your sales, marketing, IT, service, and commerce teams so you can…