Title: Cannot CSS Target Textarea
Last modified: August 30, 2020

---

# Cannot CSS Target Textarea

 *  Resolved [smarteronline](https://wordpress.org/support/users/smarteronline/)
 * (@smarteronline)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/)
 * Hi Team,
 * Unfortunately, no matter which element I target via CSS, these changes do not
   affect the width of the textarea. Could you please take a look? Is this because
   of override styles from the theme?
 * The textarea box is quite narrow.
 * Thanks,
    John
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcannot-css-target-textarea%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13337331)
 * Hello,
 * It looks like “message” is the class assigned to the textarea field.
    Please 
   try this:
 * _p.message textarea {
    width: 100%!important; }
 * Please let me know if it works.
 *  Thread Starter [smarteronline](https://wordpress.org/support/users/smarteronline/)
 * (@smarteronline)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13338060)
 * Thanks for the reply. Unfortunately, that didn’t do the trick.
 * When using the inspect element browser tool, it works. But not when it’s added
   to custom CSS.
 * Testing it on this page now and the textarea box is still narrow.
    [https://www.cakesbyyourstruly.com.au/shop/cookies/fathers-day-cookies/](https://www.cakesbyyourstruly.com.au/shop/cookies/fathers-day-cookies/)
 * Any other thoughts?
 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13338147)
 * Hello,
 * Please remove the WP cache if the caching or any optimization plugin is installed.
 * If that does not work – please contact me using [THIS](https://www.wpdesk.net/get-support/)
   form.
 *  Thread Starter [smarteronline](https://wordpress.org/support/users/smarteronline/)
 * (@smarteronline)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13338842)
 * Thank you. With your targeted code and another line of CSS I was able to adjust
   the width.
 *  Plugin Support [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * (@tomaszwp)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13338947)
 * Hello,
 * Good to hear that everything works.
    -  This reply was modified 5 years, 9 months ago by [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/).

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

The topic ‘Cannot CSS Target Textarea’ is closed to new replies.

 * ![](https://ps.w.org/flexible-product-fields/assets/icon-256x256.png?rev=2659614)
 * [Flexible Product Fields (WooCommerce Product Addons) - WooCommerce Product Page Editor](https://wordpress.org/plugins/flexible-product-fields/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/flexible-product-fields/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/flexible-product-fields/)
 * [Active Topics](https://wordpress.org/support/plugin/flexible-product-fields/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/flexible-product-fields/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/flexible-product-fields/reviews/)

 * 5 replies
 * 2 participants
 * Last reply from: [Tomasz WP Desk](https://wordpress.org/support/users/tomaszwp/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/cannot-css-target-textarea/#post-13338947)
 * Status: resolved