CSS classes not working on individual Questions

Permalink Browser Info Environment
I want to give each question a different background color so as to easily define each question. When I enter a class name in the Properties tab it works for the entire form, but when I enter the exact same class name for an individual question it does not work?

Any ideas?

Type: Discussion
Status: New
ArtOwl
View Replies:
DeWebmakers replied on at Permalink Reply
DeWebmakers
The style is on the element itself.
So if you add a class to the element your code should look something like this:

<div class="input">
<input id="your-name_3" type="text" name="your-name_3" class="text_field ccm-input-text">
</div>

Notice the class "text_field" on the element.

Best,

Corretje
ArtOwl replied on at Permalink Reply
ArtOwl
Sorry I don't follow on this one. Lets say I simply want a light blue background to one of my questions In "Edit element..." > CSS Classes > I would name my class as "lightblue-bg"

And then in say my typography.css have: .lightblue-bg { background-color: #5798ca;}

Correct?
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

You are right! The elements background should have a different background color now...

Note that if the background-color is defined before your style, the first background-color will be used for the element. In case of major changes to your styling, I would recommend to change the template of the formidable block to "clean". This way only the necessary styles are loaded..

Best,

Corretje
ArtOwl replied on at Permalink Reply
ArtOwl
OK, hey thanks for the quick replies, I've stripped back most/all other references to background color and background URLS out of the CSS across the site and I still can't get an individual css class style to show on an element? No Worries I'll work around it.
DeWebmakers replied on at Permalink Reply
DeWebmakers
Hi,

That is strange...
Post the URL here, so I can see for myself!

Best,

Corretje

concrete5 Environment Information

Browser User-Agent String

Hide Post Content

This will replace the post content with the message: "Content has been removed by an Administrator"

Hide Content

Request Refund

You have not specified a license for this support ticket. You must have a valid license assigned to a support ticket to request a refund.