Popup on mobile

Hello ! I want my popup open in the middle of the page on my mobile, not in the top.
How can i decide where my popup will open ?

Thanks for your help and sorry for my english.

JC

The only solution I’ve seen (there prob are better ones out there) is to put padding above popup based on device height using this calculation: padding = (page height - popup height) / 2

Thanks for your answer. But, i don’t understand : padding is not margin. If i change the padding, the popup stay in the top.
Can you explain how you can have a dynamic padding ?

Ugh, the more I look at it the more I recall how sloppy it was.

I used padding in the popup since there is no margin property. I made the padding height based on screen height, and the background of the popup = none. Then I grouped all the elements of the popup into a group with a background color = white and rounded corners (see example below). Obv ANY alternative route that works will be better…

1 Like

Good idea ! Thanks a lot !!!