{"id":55102,"date":"2020-04-29T23:36:45","date_gmt":"2020-04-29T21:36:45","guid":{"rendered":"https:\/\/samuelchopard.ch\/wiki\/?p=55102"},"modified":"2020-04-29T23:37:36","modified_gmt":"2020-04-29T21:37:36","slug":"disable-the-resize-property-of-a-textarea-in-css","status":"publish","type":"post","link":"https:\/\/samuelchopard.ch\/wiki\/library\/disable-the-resize-property-of-a-textarea-in-css\/","title":{"rendered":"Disable the resize property of a textarea in CSS"},"content":{"rendered":"<p><!--more--><br \/>\nUse the following code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\">textarea {\r\n  resize: none;\r\n}<\/pre>\n<p>To disable a specific textarea based on the &#8220;name&#8221; attribute, use the following code:<\/p>\n<pre class=\"EnlighterJSRAW\" data-enlighter-language=\"css\">textarea[name=foo] {\r\n  resize: none;\r\n}<\/pre>\n<p>Source: <a target=\"_blank\" href=\"https:\/\/stackoverflow.com\/questions\/5235142\/how-do-i-disable-the-resizable-property-of-a-textarea\">https:\/\/stackoverflow.com\/questions\/5235142\/how-do-i-disable-the-resizable-property-of-a-textarea<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"Use the following code: textarea { resize: none; } To disable a specific textarea based on the \"name\" attribute, use [...]","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[2],"tags":[69,248,294],"class_list":["post-55102","post","type-post","status-publish","format-standard","hentry","category-htmlcss","tag-css","tag-resize","tag-textarea"],"_links":{"self":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55102","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/comments?post=55102"}],"version-history":[{"count":3,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55102\/revisions"}],"predecessor-version":[{"id":55105,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/posts\/55102\/revisions\/55105"}],"wp:attachment":[{"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/media?parent=55102"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/categories?post=55102"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/samuelchopard.ch\/wiki\/wp-json\/wp\/v2\/tags?post=55102"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}