Title: Cannot define styles for custom element classes
Last modified: October 17, 2017

---

# Cannot define styles for custom element classes

 *  Resolved [deeveedee](https://wordpress.org/support/users/deeveedee/)
 * (@deeveedee)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/cannot-define-styles-for-custom-element-classes/)
 * I assigned custom container and customer element classes to my Ninja Form fields
   so that I can create CSS to modify the field styles. I am able to adjust the 
   style of my field containers using the custom container class, but I cannot adjust
   the style of my field elements using the custom element class. In order to adjust
   the style of the elements, I am having to use the Ninja Forms assigned element
   ID (e.g. #nf-field-54).
 * Has anyone been able to use their custom element classes in their style CSS?
 * I’m running WordPress 4.8.2, Ninja Forms 3.2.2, PHP 5.6.31.

Viewing 1 replies (of 1 total)

 *  Thread Starter [deeveedee](https://wordpress.org/support/users/deeveedee/)
 * (@deeveedee)
 * [8 years, 6 months ago](https://wordpress.org/support/topic/cannot-define-styles-for-custom-element-classes/#post-9605579)
 * Custom element classes do work. I must have crafted my CSS incorrectly. Once 
   I retested, all was working fine.
 * If you want to create CSS to modify the style of your Ninja Forms fields, define
   the container and element classes when you create the field and then reference
   the container and element classes in your CSS. Very cool.

Viewing 1 replies (of 1 total)

The topic ‘Cannot define styles for custom element classes’ is closed to new replies.

 * ![](https://ps.w.org/ninja-forms/assets/icon-256x256.png?rev=1649747)
 * [Ninja Forms - The Contact Form Builder That Grows With You](https://wordpress.org/plugins/ninja-forms/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/ninja-forms/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/ninja-forms/)
 * [Active Topics](https://wordpress.org/support/plugin/ninja-forms/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/ninja-forms/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/ninja-forms/reviews/)

 * 1 reply
 * 1 participant
 * Last reply from: [deeveedee](https://wordpress.org/support/users/deeveedee/)
 * Last activity: [8 years, 6 months ago](https://wordpress.org/support/topic/cannot-define-styles-for-custom-element-classes/#post-9605579)
 * Status: resolved