Is it possible to apply custom CSS to an individual field?
Cognito-forms – Custom CSS to Individual Fields
cognito-forms
Related Topic
- Cognito-forms – Missing fields in Basic/Advanced Editor
- Cognito-forms – Create post-event forms in Cognito allowing users to see what they entered in pre-event
- Cognito Forms – How to Prefill Date Fields via URL
- Cognito-forms – Custom repeating section in Cognito Forms
- Cognito-forms – Save custom columns view
- Cognito-forms – Styling Content Fields in Cognito Forms
Best Answer
I'm a developer with Cognito Forms.
You can use CSS to target field types and labels when your Cognito Form is embedded on your website. You can use our list of CSS class properties, and then use CSS attribute selector to target a specific field.
This would use '[Data-Field="FieldName"] after the class property. If you wanted to target an Email Address field that was labeled 'Email' The CSS selector would look like the following.
With the full CSS looking like the following.