The CSS field-sizing property enables input fields and select menus to automatically resize based on their content, eliminating the need for JavaScript. Currently supported only in Chrome, it works by setting field-sizing: content on form elements. Use cases include conversational forms, pagination controls, URL inputs with

3m read timeFrom ishadeed.com
Post cover image
Table of contents
IntroductionSet a min and a max widthUse cases and examplesProgressive enhancement
1 Comment

Sort: