Title: cform and styling
Last modified: August 22, 2016

---

# cform and styling

 *  Resolved [tomkinsrichard](https://wordpress.org/support/users/tomkinsrichard/)
 * (@tomkinsrichard)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/cform-and-styling/)
 * Is there a method to associate a specific styling (CSS) with a specific form,
   supposing that multiple cforms were used on the same website?
 * [https://wordpress.org/plugins/cforms2/](https://wordpress.org/plugins/cforms2/)

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [Ben B](https://wordpress.org/support/users/generik99/)
 * (@generik99)
 * [11 years, 2 months ago](https://wordpress.org/support/topic/cform-and-styling/#post-5810458)
 * Yes, there are a couple ways to do this.
 * Each FORM element has an automatically-generated class given based on your form’s
   name. For example, a form called ‘Volunteer Application’ will have something 
   like ‘volunteer-application’ attached as a class, which you can then use for 
   styling. Search your page source for id=”cforms5form” and you will see which 
   class name was generated.
 * Alternatively, if your form is embedded in a page or post, you can use the WordPress-
   generated ‘post-xxx’ class. This obviously only works if you are only using one
   form in that particular page.
 * Finally, each field name has it’s own automatically-generated class name that
   starts with a prefix of the form ID (eg. cf1_field_5 or cf3_field_10) , but they
   will change depending on the ordering of your fields, so be careful about styling
   at this level — adding, removing or repositioning fields will require you to 
   change your CSS classes accordingly.
 * Hope that helps!
 *  Plugin Author [bgermann](https://wordpress.org/support/users/bgermann/)
 * (@bgermann)
 * [11 years ago](https://wordpress.org/support/topic/cform-and-styling/#post-5810525)
 * resolved

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘cform and styling’ is closed to new replies.

 * ![](https://ps.w.org/cforms2/assets/icon-128x128.png?rev=1010031)
 * [cformsII](https://wordpress.org/plugins/cforms2/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cforms2/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cforms2/)
 * [Active Topics](https://wordpress.org/support/plugin/cforms2/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cforms2/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cforms2/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [bgermann](https://wordpress.org/support/users/bgermann/)
 * Last activity: [11 years ago](https://wordpress.org/support/topic/cform-and-styling/#post-5810525)
 * Status: resolved