Title: Css problem &#8211; Can&#039;t apply css on input
Last modified: August 31, 2016

---

# Css problem – Can't apply css on input

 *  [thibom](https://wordpress.org/support/users/thibom/)
 * (@thibom)
 * [10 years ago](https://wordpress.org/support/topic/css-problem-cant-apply-css-on-input/)
 * Hello guys !
 * I’ve got a strange problem with my form. I want to apply css style on few inputs.
   To achieve that, every input i want to modify has in class attribute “test” value.
   Everything works, it’s great.
 * But when i use .test in my css file, it only changes my textarea input.
 * Here is my css :
 *     ```
       .test{
            background-color: green;
       }
       ```
   
 * Thanks for your help ! 🙂
 * [https://wordpress.org/plugins/contact-form-7/](https://wordpress.org/plugins/contact-form-7/)

Viewing 1 replies (of 1 total)

 *  [LESIMOON](https://wordpress.org/support/users/lesimoon/)
 * (@lesimoon)
 * [10 years ago](https://wordpress.org/support/topic/css-problem-cant-apply-css-on-input/#post-7421529)
 * I change the background color to every input without any problem.
    Even if I 
   did it with and #id instead of a .class, this shouldn’t be the problem.
 * Maybe your theme inputs background color are forced.
    Try with the !important
   setting.
 *     ```
       .test{
            background-color: green!important;
       }
       ```
   

Viewing 1 replies (of 1 total)

The topic ‘Css problem – Can't apply css on input’ is closed to new replies.

 * ![](https://ps.w.org/contact-form-7/assets/icon.svg?rev=2339255)
 * [Contact Form 7](https://wordpress.org/plugins/contact-form-7/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/contact-form-7/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/contact-form-7/)
 * [Active Topics](https://wordpress.org/support/plugin/contact-form-7/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/contact-form-7/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/contact-form-7/reviews/)

## Tags

 * [css](https://wordpress.org/support/topic-tag/css/)
 * [styling](https://wordpress.org/support/topic-tag/styling/)

 * 1 reply
 * 2 participants
 * Last reply from: [LESIMOON](https://wordpress.org/support/users/lesimoon/)
 * Last activity: [10 years ago](https://wordpress.org/support/topic/css-problem-cant-apply-css-on-input/#post-7421529)
 * Status: not resolved