Background Color Overlay Layout Builder - Question | JoomShaper

Background Color Overlay Layout Builder

C

conshelf

Helix Framework 3 years ago

Hello,

Is there an easy way to get a background overlay over the background image in the bottom section?

It would be nice if this was a background option in the layout builder like it is in SP Page Builder.

I've tried adding custom CSS but even though I've specified the bottom section, the overlay covers the entire page.

section#sp-bottom:before {
    background: rgba(0,0,0,0.3);
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

Kind regards, John

0
8 Answers
Pavel
Pavel
Accepted Answer
3 years ago #6542

Hi. This code will work.

#sp-bottom {
    position: relative;
}
#sp-bottom::before {
    background: rgba(0,0,0,0.3);
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

Just do not forget to delete your previous code. It is still there.

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #5738

Hi, Give me your site URL and also screenshot of that portion

0
C
conshelf
Accepted Answer
3 years ago #5878

Hi Mehtaz,

Sure, here's the URL: https://okeanus.tscstrategic.com/products

As you can see, it applies the overlay to ALL main body elements.

Kind regards, John

0
C
conshelf
Accepted Answer
3 years ago #5908

Hello,

I've tried apply to just the container as well with this CSS, but that didn't work either:

#sp-bottom .container:before {
    background: rgba(0,0,0,0.3);
    position: absolute;
    content: "";
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
}

I have to remove this CSS for now as it ruins the layout.

Kind regards, John

0
Mehtaz Afsana Borsha
Mehtaz Afsana Borsha
Accepted Answer
Support Agent 3 years ago #6515

Did you insert this css on custom.css file? then remove it from there

0
C
conshelf
Accepted Answer
3 years ago #6527

Hi Mehtaz,

The CSS has been removed.

It doesn't work, hence the reason I asked the question is there an easy way to get a background overlay over the background image in the bottom section?

Kind regards, John

0
C
conshelf
Accepted Answer
3 years ago #6850

Awesome, thank you Pavel, your solution worked perfectly!!!

0
Pavel
Pavel
Accepted Answer
3 years ago #6859

You are wellcome

0