TAG ยท form
Styling form fields in CSS
Range sliders, selects, checkboxes, floating labels and error states, each shown live with the code and the browser that breaks it. 10 elements, each rendered live with its source and the one thing that breaks it.
- Five stars without reversing the keyboard :has(~ :checked)
- A pricing card that is still a radio :has(:checked)
- A select you can finally style appearance: base-select
- The filled half of a range track ::-moz-range-progress
- A textarea that grows as you type field-sizing: content
- A switch that is still a checkbox appearance: none
- A range slider you can actually style ::-webkit-slider-thumb, ::-moz-range-thumb
- An error state that waits its turn :user-invalid
- Native controls in your palette accent-color
- A label that floats out of the way :placeholder-shown