Articles Tagged
Quick Hit #37
The very first public draft of the CSS Form Control Styling Module Level 1 specification has been published as of yesterday. Still a work-in-progress but what a win for the future of consistent form styling!…
Grouping Selection List Items Together With CSS Grid
A CSS-Only Star Rating Component and More! (Part 1)
field-sizing
The CSS field-sizing
property allows certain form controls — such as inputs, select, and textareas — to automatically grow as big as the text inside it is. All it takes is a single declaration with the content
value.…
How to Create Multi-Step Forms With Vanilla JavaScript and CSS
How to Make a “Scroll to Select” Form Control
The <select>
element is a fairly straightforward concept: focus on it to reveal a set of <option>
s that can be selected as the input’s value. That’s a great pattern and I’m not suggesting we change it. That said, I …
The selectmenu Element is No More…Long Live select!
I was looking over an older article Patrick Brosset penned for us introducing <selectmenu>
, a new proposal at the time for a more style-able cousin to <select>
. From there, I clicked the linked-up <selectmenu>
explainer and got… this:…
Two Ways to Create Custom Translated Messaging for HTML Forms
HTML forms come with built-in ways to validate form inputs and other controls against predefined rules such as making an input required, setting min and max constraints on range sliders, or establishing a pattern on an email input to check …