Skip to content

Commit

Permalink
Credit Stephen Shaw
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw authored Sep 30, 2023
1 parent b0aa751 commit 031d0f4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion css/resizing-textarea.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Understanding the CSS auto-resizing textarea trick

Chris Coyier [wrote about](https://chriscoyier.net/2023/09/29/css-solves-auto-expanding-textareas-probably-eventually/) the new `form-sizing: normal` property, which can get a `<textarea>` to automatically expand to fit its content - but currently only in Google Chrome Canary. Chris also linked to [his own favourite trick](https://codepen.io/chriscoyier/pen/XWKEVLy) for doing that, using some CSS grid trickery.
Chris Coyier [wrote about](https://chriscoyier.net/2023/09/29/css-solves-auto-expanding-textareas-probably-eventually/) the new `form-sizing: normal` property, which can get a `<textarea>` to automatically expand to fit its content - but currently only in Google Chrome Canary. Chris also linked to [his own favourite trick](https://codepen.io/chriscoyier/pen/XWKEVLy) for doing that, using some CSS grid trickery (original idea by Stephen Shaw).

I decided to dig into that grid trick and figure out how it works, as well as adapt it slightly for my own preferences.

Expand Down

0 comments on commit 031d0f4

Please sign in to comment.