Negative margin button does not work

Hello, i have a button which i would like on top of an image. Negative margin does not work, is there a way to do that?
This is the page: https://jittysamsterdam.com/team/ with employer Valentina there is a button
I would need to do this with each employee

Thanks

Hi @RPronk,

Thanks for writing in!

First of all you have applied a negative margin incorrectly. Actually it works. You have inserted a negative top margin. Your perception of the margin is that it will stay on top of the image which is not the case.

Do you want something like this?

In that case, please edit your page back in Cornerstone and insert the following custom css in the settings tab, Settings > Custom CSS

.x-column.x-sm.x-1-3 {
    position: relative;
}

.x-column.x-sm.x-1-3 .x-anchor.x-anchor-button.jb {
    position: absolute;
    top: 260px;
    left: 50px;
    margin: 0 auto;
    z-index: 999;
}

We would loved to know if this has work for you. Thank you.

Briljant!!! Adjusted the value a bit, works perfectly!!
Thanks very happy with this!

Have a great day :slight_smile:

On behalf of my colleague, you’re welcome. Cheers! :slight_smile:

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.