Position and size adjustment for stars | XM Community
Skip to main content
Solved

Position and size adjustment for stars

  • September 4, 2018
  • 5 replies
  • 391 views

Forum|alt.badge.img+1
Hi everyone, I'm pretty new to Qualtrics and JavaScript but need to make some adjustments to a star rating question. How can elements (e.g. sliders/stars) be aligned within the page (e.g. centered horizontally) and adjusted in size (e.g. made bigger, keeping the aspect ratio of the stars)? Thanks for your support! Best, Eva

Best answer by MohammedAli_Rajapkar

You can center align it by adding below code in "Custom CSS". You can try increasing or decreasing the percentage value to adjust the position. .Skin .ylabel { width: 37%; } Regarding star size increase, not sure if we able to do it, however, the other way would be to reduce the font size of the question text so that the star looks bigger comparatively to font text. !

5 replies

sankeshkumar
QPN Level 2 ●●
Forum|alt.badge.img+1
  • QPN Level 2 ●●
  • September 4, 2018
Hello @EvaSch Can you help with some visual mode of your query..

Forum|alt.badge.img+1
  • Author
  • September 4, 2018
Hi @sankeshkumar, here's a screenshot: ! As you can see, the stars are left aligned (I want them to be centered) and I also would like them to be bigger. Thanks a lot for your support! Best, Eva

MohammedAli_Rajapkar
QPN Level 5 ●●●●●
Forum|alt.badge.img+20
You can center align it by adding below code in "Custom CSS". You can try increasing or decreasing the percentage value to adjust the position. .Skin .ylabel { width: 37%; } Regarding star size increase, not sure if we able to do it, however, the other way would be to reduce the font size of the question text so that the star looks bigger comparatively to font text. !

Forum|alt.badge.img+1
  • Author
  • September 6, 2018
@sankeshkumar Thank you!

Forum|alt.badge.img+1
  • Level 1 ●
  • January 8, 2019
> @Mohammedali_Rajapakar_Ugam said: > You can center align it by adding below code in "Custom CSS". You can try increasing or decreasing the percentage value to adjust the position. > > .Skin .ylabel { > width: 37%; > } > > Regarding star size increase, not sure if we able to do it, however, the other way would be to reduce the font size of the question text so that the star looks bigger comparatively to font text. > > ! > This appears to position the stars to a certain % from a right alignment. I can get the stars to align on one screen size, but it is inconsistent across screen size changes.