Modal window is not working with position sticky parent

hello,

I have created a module in hubspot to open a modal window on click of a CTA image. My requirement is the CTA should be sticky.

But modal window is greying up the whole window and form inside it inaccessible. It works perfectly fine when I remove position:sticky from CTA image.

Can you please help what can be done. With parent div having position sticky, modal window is not working well. (I am using bootstrap)

Hello @shrutirathi, could you please provide us with a link to your preview/live page? That way it’s way easier to show you the correct steps to follow in order to achieve what you want :slightly_smiling_face:

Hello albertsg,

thank you for your reply. My problem is solved, I have appended the modal window to body via js, so that comes under same stacking order as of its parent div.

$(“#myPopupWindow”).appendTo(“body”);