Trying to achieve this overlap thing with GeneratePress/GenerateBlocks – negative margin isn’t working

[ad_1]

I’m doing something based on Investopedia’s category pages:

I want to have that section where the white background turns to grey, but that table with the five divs peeks over it, making it look like the background color changes half way through the table.

I tried creating a container with a grey background, then another container with a grid that has the five divs, and then negative margin the inner container up over the bottom of the top container so that it’s half out of the grey BG color, but it’s bringing that grey BG color with it.

Any suggestions on how to achieve this?

[ad_2]

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer