How to Create Overlapping Elements with Z-Index / Negative Margin

preview_player
Показать описание

In this tutorial, you'l learn how to create two cool overlapping effects - a vertical overlap effect, where an element is overlapping the section above and below it; and a horizontal overlap effect, where the element overlaps a content box to its side.

Both effects make use of negative margins and the new z-index property in Oxygen 2.2.

Рекомендации по теме
Комментарии
Автор

The only builder i love to design sites with was never a page builder fan till i found you guys. Keep up the good work.

minutecrap
Автор

True responsiveness. Mobile sites will never look the same. Thanks Louis.

thebibleproof
Автор

Pro tip - if you have a shape divider at the top of a section over which you want to place a div, you need to specify overflow: visible !important; in a custom css sheet for the section with the shape divider. Pretty sure you can't overlap unless you do that - at least on my computer.

The thing is, the shape divider at the top forces an overflow: hidden. Not even going into the section layout and selecting overflow: visible will override it.

andrew.schaeffer
Автор

Great video. Slight improvement... Instead of using the ID at 10:40, add a second class called something like "my-nice-feature-box-left"

elemenopee
Автор

Thanks for this tut! Worked great for me. Had to adjust for mobile as well but worked great.

TheNashvilleJason
Автор

Thanx a lot. Very clear. Thanx for mobile layout example.

Danishevskiy
Автор

How do I center the separator :after? I tried this and it works but only aligning left, can I center it too?

robertomaddaloni
Автор

be good to show how you create it as blog template for multiple posts, whereby it alternates between left image and right image.

malcfinch
Автор

Anyone know how to create the highlight effect behind Z-Index and Negative Margin? I found a way using 4 text blocks and a div but I think there's got to be a better way.
Great video as usual!

nikikinz
Автор

Is it possible to do something like this in Elementor?

zachary