Activity Forums Salesforce® Discussions How to set background colour in <div> in Lightning Component in Salesforce?

  • How to set background colour in <div> in Lightning Component in Salesforce?

    Posted by krati on February 6, 2020 at 3:01 pm

    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.

    krati replied 4 years, 9 months ago 1 Member · 0 Replies
  • 0 Replies

Log In to reply.

Popular Salesforce Blogs

Popular Salesforce Videos

Popular Salesforce Infographics