Can I use my own class names in custom css?! | XM Community
Skip to main content
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
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!
Because welcomeText is a class, put a period before it in CSS:

```

.welcomeText {

background-color: red;

}

```

Leave a Reply