1

Is it possible to apply custom CSS to an individual field?

1 Answer 1

1

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.

.c-email[Data-Field="Email"]

With the full CSS looking like the following.

.c-email[Data-Field="Email"] {font-size: larger;}
1
  • Thank you. Could u please provide CSS for the WIDTH of a SPECIFIC Choice/Checkbox Field? Sep 21, 2017 at 12:27

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.