I'm trying to freeze an image at the top of a Qualtrics survey block.
Participants will answer questions based on the image, so it will need to stay anchored to the top of the screen in view while they scroll down to answer several questions.
I'm trying to use the code Anthony Rivas kindly provided in this post to do this:
https://stackoverflow.com/questions/46286498/how-to-have-entire-item-in-qualtrics-remain-in-position-when-scrolling
!
I've added the image using this html along with the javascript from here:
https://www.qualtrics.com/community/discussion/1622/keeping-an-image-frozen-in-place-when-scrolling-issue-with-spacer-element-in-javascript-html
!
The image block is now locked at the top BUT Question 1 is hidden behind it. (Interestingly the behaviour is slightly different on mobile, where not all of Q1 is hidden.) See image below:
!
Does anyone know where I'm going wrong? I'm not well versed in html or JS so it's been very hard for me to troubleshoot.
(In case it complicates matters further, there will be seven blocks of images (and questions) which will be randomised in order.)
Page 1 / 1
Have you checked this?
Thanks but that link is where I've taken the code from (see third paragraph above)
> @AlexSmalley said:
> Thanks but that link is where I've taken the code from (see third paragraph above)
Oh, sorry. I just have this link bookmarked 😀
> Thanks but that link is where I've taken the code from (see third paragraph above)
Oh, sorry. I just have this link bookmarked 😀
Did you ever get this worked out? I'm having the same issue
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.