-
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
![Batch Apex in Salesforce](https://images.forcetalks.com/wp-content/uploads/2022/09/28191910/Batch-Apex-in-Salesforce.jpg)
Using Batch Apex in Salesforce | The How-to Guide
Batch Apex Batch Apex is used to run Large Jobs that would exceed processing limits. By using Batch apex, We can process thousands of records…
![Dreamforce 2022 Highlights](https://images.forcetalks.com/wp-content/uploads/2022/10/14171552/Dreamforce-2022-Highlights.jpg)
Dreamforce 2022 Highlights - Everything You Need To Know
The Salesforce’s annual event, “Dreamforce” was held in San Francisco from September 21 to 23, completing their 20 years of magnificence. This year’s event was…
![](https://images.forcetalks.com/wp-content/uploads/2022/04/15111858/sa_1650021408SalesforceCareerPath%201-1024x511.png)
Salesforce Career Path - A Complete Guide
Salesforce is "the world's #1 customer relationship management (CRM) platform," according to the website of the production firm. Their software aims to assist businesses in…
Popular Salesforce Videos
Salesforce Lightning Events Tutorial I Building Component Events (Single Component)
This Salesforce Lightning Events Tutorial will make you learn how to register an event in Salesforce Lightning and handle that event in the source component…
Security in Salesforce | Security Levels in Salesforce | Salesforce Training
This "𝐒𝐞𝐜𝐮𝐫𝐢𝐭𝐲 𝐢𝐧 𝐒𝐚𝐥𝐞𝐬𝐟𝐨𝐫𝐜𝐞" video by Edureka will help you understand the different levels of security in Salesforce. It will also talk about some of…
Salesforce Einstein Keynote: Meet Your Smart CRM Assistant
Salesforce Einstein is your smart CRM assistant, making your employees smarter and your customers happier. With Einstein, everyone has an AI-powered assistant to help them…
Popular Salesforce Infographics
![](https://images.forcetalks.com/wp-content/uploads/2019/01/02142901/sa_1546439243Webp.netresizeimage%201.jpg)
Salesforce Training Simplified
Salesforce training simplified. Create a proven Salesforce Training model that will derive your end-users and impress your executive team. Prepare, deploy, maintain. Go through this…
![](https://images.forcetalks.com/wp-content/uploads/2019/12/05105908/sa_1575543459banner11.jpg)
Dreamforce Facts & Numbers INFOGRAPHIC
We are now just a week away from the biggest Cloud carnival of the world ‘Dreamforce‘. Trailblazers from across the globe will be in San…
![AI and Salesforce Einstein](https://images.forcetalks.com/wp-content/uploads/2018/01/20143613/AI-and-Salesforce-Einstein.png)
AI and Salesforce Einstein Giving Customer Experience A New Direction
This Salesforce infographic will guide you with CEPTES leveraging the power of AI with new strategies and value chains.