Skip to content

Commit

Permalink
yoloing at 2024-10-23T11.06
Browse files Browse the repository at this point in the history
  • Loading branch information
byt3h3ad committed Oct 23, 2024
1 parent 2063a4f commit 92d6944
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions css/textarea-styles.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Auto-resizing textarea/input styles

```css
textarea {
field-sizing: content;
/** fallback: line-height * 4 lines */
min-height: calc(24px * 4);
/** make the height atleast 4 lines */
min-height: 4lh;
}
```

0 comments on commit 92d6944

Please sign in to comment.