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?
Any ideas?
Type: | Discussion |
---|---|
Status: | New |
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?
And then in say my typography.css have: .lightblue-bg { background-color: #5798ca;}
Correct?
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
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
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.
Hi,
That is strange...
Post the URL here, so I can see for myself!
Best,
Corretje
That is strange...
Post the URL here, so I can see for myself!
Best,
Corretje
So if you add a class to the element your code should look something like this:
Notice the class "text_field" on the element.
Best,
Corretje