Hi, In a matrix table, is it possible to use CSS to change the column widths. In particular, to make the evenly spaced.
Page 1 / 1
By default, answer column widths are the same. So, if they aren't then you probably have some columns labels that are wider than the common width that is causing them to automatically increase and others to decrease.
In order to change columns width you really need to use JavaScript because Qualtrics uses an attribute instead of a css style to set the width. Besides, it is a better to calculate the width in JavaScript rather than set it to some fixed value.
In order to change columns width you really need to use JavaScript because Qualtrics uses an attribute instead of a css style to set the width. Besides, it is a better to calculate the width in JavaScript rather than set it to some fixed value.
Tom G, how do you do that?
Hi @Lauren_BU! Be sure to use @ to tag and notify a user!
@tomG following this (how to set equal widths from css if labels are longer than scale points)?
@JanaJarecki - I'm not sure I understand what you are asking. Can you post a picture of your matrix?
Hi Tom,
thank you for the quick reply! =)
I'm asking how to implement your suggestion, i.e. what is the jQuery code to set the col width attributes in matrix tables
> By default, answer column widths are the same. So, if they aren't then you probably have some columns labels that are wider than the common width that is causing them to automatically increase and others to decrease.
> In order to change columns width you really need to use JavaScript because Qualtrics uses an attribute instead of a css style to set the width. Besides, it is a better to calculate the width in JavaScript rather than set it to some fixed value.
I can post a screenshot tomorrow when Im back in the office!
thank you for the quick reply! =)
I'm asking how to implement your suggestion, i.e. what is the jQuery code to set the col width attributes in matrix tables
> By default, answer column widths are the same. So, if they aren't then you probably have some columns labels that are wider than the common width that is causing them to automatically increase and others to decrease.
> In order to change columns width you really need to use JavaScript because Qualtrics uses an attribute instead of a css style to set the width. Besides, it is a better to calculate the width in JavaScript rather than set it to some fixed value.
I can post a screenshot tomorrow when Im back in the office!
@JanaJarecki ,
Were you ever able to find the code for adjusting the column width? I could use it too!
Were you ever able to find the code for adjusting the column width? I could use it too!
Leave a Reply
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.