Site logo

Archived topic

Inverted border radius for container on a page hero element?

5 replies · Started by William on October 21, 2022

Viewing posts 1–6 of 6

Hi there.

In what way is it possible to add an inverted border-radius (see the red lines) to a container in a GP hero element?

Many thanks,

Will

Hi David,

Hmm okay and yes I do, see it in the private information.

Kind regards,

Will

Hi Will,

It's not very easy use only CSS to achieve that.

Would you like to try the SVG shape method? I did it on my test site:
https://www.screencast.com/t/AAfXiW8Y

The first step would be adding 2 shapes to the container, one of them need to be flipped horizontally:
https://www.screencast.com/t/yAlusVp1RcmX

Then add a CSS class to the container, eg. inverted-container, then add this CSS:

.inverted-container  .gb-shape {
    max-height: 200px;
    overflow: visible;
}

.inverted-container .gb-shapes svg{
    width: 200px !important;
    min-width: unset !important;
    left: calc(100% + 100px) !important;
}

Wow that is complex but works. Amazing thank you!

Glad it works for you :)

This archived topic is closed to new replies.