Can I use my own class names in custom css?! | XM Community
Question

Can I use my own class names in custom css?!

  • 21 March 2019
  • 3 replies
  • 20 views

Hi there,
I am working on implementing some designs for a survey - I assumed I could add a classname or id of my own to the html in a question and then manipulate this with css in the custom css panel inside 'Look and Feel'. However it doesn't not seem to pick my class names up - can anyone shed some light here? Any tips appreciated

3 replies

Userlevel 5
Badge +6
Hi @JC888,
I work with both ids and classes and it works fine. Could provide some minimal HTML and CSS codes which are not working?
There might be some problems if you use the trial account. See this discussion.
Hey Fleb - thanks for the quick response.

For example - In HTML view of the survey editor I have something like a div with class name welcomeText

Then in the custom css editor:

welcomeText {
background-color: red;
}

But it doesn't pick up. I'll dig deeper into this trial account answer, it could be the case although I don't think I'm using a trial account.

Thanks!
Userlevel 7
Badge +27
Because welcomeText is a class, put a period before it in CSS:
```
.welcomeText {
background-color: red;
}
```

Leave a Reply