CSS Code for standard font style and size | XM Community
Skip to main content
Question

CSS Code for standard font style and size

  • September 15, 2020
  • 4 replies
  • 305 views

Hi,

can anyone tell me the CSS Code for the Look and Feel menu, to change the font style (e.g. Arial) and size (e.g. 12) for the entire survey for the question text and the answer options?

Thanks!!

4 replies

rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • September 15, 2020

We do not need custom CSS for this, as these options are present under look and feel


  • Author
  • September 15, 2020

No unfortunately they're not. This is everything I see under the look and feel - style menu.
image.png


rondev
Level 6 ●●●●●●
Forum|alt.badge.img+22
  • Level 6 ●●●●●●
  • September 15, 2020

Since you are using some static theme, you are not able to view that options, so in that case use below CSS in custom CSS
.Skin .QuestionText, .Skin .QuestionBody {
  font-size: 18px!important;
font-family:Arial!important;
}


Forum|alt.badge.img+5
  • Level 2 ●●
  • February 8, 2022

    I've used this code to change the labels on mobile as they weren't fitting on the screen, hopefully it's useful:
@media (max-width: 480px) {
ul.labels {
    word-break: break-word;
    font-size: 6px;
    }
}