How can I freeze the top row in a matrix question? | XM Community
Skip to main content

Hi Qualtrics users,

 

I have a survey which contains matrices with a lot of rows. I would like to freeze the top row (with the answer options) so that when participants scroll to the lower rows, the answers remain. Can anyone help me with this?

 

Thanks so much.

Hi,

You can try adding this style to your question text in source mode. Change max-height to your preference.

<style type="text/css">
.Skin .QuestionBody {
max-height: 300px;
overflow-y: auto;
}
.Skin .QuestionBody thead {
position: sticky;
top: 0;
background: #fff;
z-index: 10;
}
</style>
Your question

 


Hi Vincent,

 

Thanks for your response! That seems to work in the question preview but when I preview the survey, I lose the matrix row options below the top row (see screenshot). Can you help with this?

 

 


Your 6th colum’s header is so long that it pushes the statements outside of the question’s allowed height. You can increase it but you’ll most probably end up with 2 scroll bars: one for the matrix and one for the whole window.

See if you can reduce the length of your choices, or the font size… You could also use Qualtrics’ “repeat headers” option instead.


Leave a Reply