-
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
![Asynchronous Apex in Salesforce](https://images.forcetalks.com/wp-content/uploads/2022/08/31191514/Asynchronous-Apex-in-Salesforce.jpg)
Here's All you need to Know About Asynchronous Apex in Salesforce
Apex offers multiple ways to run your Apex code asynchronously. This can save you time and help you keep your code more organized. Asynchronous apex…
![](https://images.forcetalks.com/wp-content/uploads/2021/03/24141440/sa_1616595085Experience%20with%20Salesforce%20CPQ.jpg)
How Salesforce CPQ Can Enhance the B2B Customer Experience?
A typical B2B buying experience is known to be complex and heavily layered. With a prolonged quoting process and the lack of personalization in billing…
![Switching From Classic to Salesforce Lightning](https://images.forcetalks.com/wp-content/uploads/2018/03/25082051/Classic-to-Salesforce-Lightning.png)
Points to Remember for Switching Your Salesforce Org From Classic to Lightning
Hello Salesforce Lovers, This blog helps you in analysing what are the things you need to remember for switching your Salesforce org from Classic to…
Popular Salesforce Videos
All About Salesforce Web Chat
Salesforce webchat help customer interacts with the support team. It also improves the support experience for customers. It is very easy to set up the…
Apex Trigger Framework Salesforce
From Salesforce instructor, Become a Salesforce Expert. See This video, and learn all about Apex Trigger Framework. `Resource: SFDC Panther
Salesforce Billing - Digital Wallets and Alternative Payment Methods
THE GOAL: In this video, you will learn how to use Alternative Payment Methods and Digital Wallets with Salesforce Billing. BEFORE YOU BEGIN, KNOW THE…
Popular Salesforce Infographics
![](https://images.forcetalks.com/wp-content/uploads/2018/01/25083229/sa_1516271969Role%20of%20Salesforce%20Admin.png)
The Role of a Salesforce Administrator
Identify the latest Salesforce Administrator trends from the Salesforce Usage Report 2017 using data from over 1,200 Salesforce respondents. Publisher : Ebsta Limited
![Salesforce Buzz](https://images.forcetalks.com/wp-content/uploads/2018/01/20144416/Salesforce-Buzz.jpg)
Salesforce Buzz | An Infographic
While Salesforce has been coined as the World's #1 CRM, there has been a constant buzz around the stats and facts of it. Almost 58%…
![salesforce trends](https://images.forcetalks.com/wp-content/uploads/2021/06/21203848/salesforce-trends.jpg)
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…