Future CSS Tip! 🚀
You can create auto-resizing text inputs with one line of CSS 🤯
textarea {
form-sizing: content; 👈 That's it!
}
The size of your input will grow to fit your content. If you want to constrain the size, do something like this:
textarea {
form-sizing: content;
min-height: 2lh;
max-height: 10lh;
}
This one's awesome. Think about how much effort it will save you 🙌 No more JavaScript to sync a textarea height to fit the content 🔥
Perfect for chat interfaces, messaging, comments, etc. 📢
@CodePen link below! 👇
✨Pierre, tu as inspiré des millions de gens à travers le monde. Nous allons continuer à faire notre part, plus que jamais. Ton sourire restera à jamais dans nos coeurs.
Je recherche un(e) chef(fe) de projet. Une équipe à taille humaine, des projets variés, une utilisation forte de @NotionHQ pour structurer tout ça, du télétravail, etc.
N'hésitez pas à partager ou à me contacter si vous avez des questions 😉 Merci 👍
Google's incognito mode is “pretty useless”. https://t.co/faqL0EW0Mf
Protect your privacy online for real w/our all-in-one solution: https://t.co/QNfnevM3gf
Comic source: https://t.co/Nay3poyoup
Another web is possible, privacy-enhancing and rights-preserving. This is more important than ever now that Apple made a clear move against our privacy and digital rights! Thanks for posting @avilarenata.