Question T1542
Visible to All Users

Position of survey window

created 6 years ago

I have succeeded creating a survey and rendering it as a pop-up window. But I can't find a way to control where the pop-up window is positioned. It is always positioned in the lower right corner of the browser windows and I would like the pop-up window to be positioned in the middle of the browser windows instead. Is that possible?

Best regards,

Carl Grundholm

Answers

created 6 years ago

Hello,

You can override the window position via CSS:

CSS
div.sv_window { position: absolute !important; top0 !important; left0 !important; width50% !important; height50% !important; }

But I'd suggest you to put an ordinary rendered survey in your custom popup and have full control over it's. position, size, title and show/hide behaviour.

Thanks, Serge
SurveyJS Team