[Resolved] Add background color behind 3 consecutive blocks

Home Forums Support Add background color behind 3 consecutive blocks

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #956061
    Linda

    Hi Support,

    Is there a way to add a background color behind 3 consecutive blocks?

    I’m trying to highlight a section of our home page which includes a Title block, a spacer block, a columns block and a final title block. I added CSS to all 3, but ended up with bands of white between each. I saved it on the home page so you can see my result.
    My Result

    Thanks for your help!

    Linda

    #956070
    Leo
    Staff
    Customer Support

    Hi there,

    Edit this CSS:

    .bg-green {
        background-color: #99d93f;
    }

    to this:

    .bg-green {
        background-color: #99d93f;
        margin-bottom: 0 !important;
    }

    Let me know 🙂

    #956100
    Linda

    Leo,

    You are a technological (and CSS) genius!

    Thank you. It worked perfectly … and I always love adding the word important to anything! 🙂

    Gratefully,

    Linda

    #956124
    Leo
    Staff
    Customer Support

    !important is not needed most of the time. But sometimes it’s ok.

    Will come with experience 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.