Hi there - I'm using section fields, with no labels but descriptions, to include plain text depending on the answer to a previous field. As per previous discussion posts, I achieve this with conditional logic.
I would like to be able to have three different CSS classes for the description text. I've done the first one, by amending the standard forms.css file (which I've pasted in the theme's stylesheet (and I've then turned off the "output.css" feature), as follows:
.gform_wrapper .gsection_description {background-color:#FFDFDF!important; margin-top:4px!important; margin-bottom:6px; padding:6px 6px 4px 6px!important; border:1px dotted #C89797}
As you'll see, I've copied the approach for field error messages, so as to change the background colour for the description text to pink/red.
What I'd like is to be able to create two alternatives for the description text, one with a green background and one with an amber background. The green, amber and red backgrounds will be used to denote something like "you may proceed", "proceed with caution" and "do not proceed", respectively.
I've tried to do this, for green, by adding the following additional CSS class:
.gform_wrapper .gsection_description_green {background-color:#009900!important; margin-top:4px!important; margin-bottom:6px; padding:6px 6px 4px 6px!important; border:1px dotted #C89797}
I've then tried to override the standard CSS for a given section field by adding "gsection_description_green" into the CSS Class Name field in the advanced tab for that field.
However, it's not working as intended. Instead of giving the description text a green background, it's giving the rest of the section field a green background, whilst keeping the background to the description area of that field red.
I'm confident that I'm making a CSS error here. Can anyone help me figure out how to make this work please? Would really appreciate some help here.
Thanks in advance
Richard