Skip to main content

Harshal V. LADHE

Customisable <select> in CSS

Opting the native `<select>` into a fully styleable mode with `appearance: base-select`, `::picker(select)` and `<selectedcontent>`, without losing its built-in behaviour.

Content tagged customizable-select

  • Tutorial:Styling a <select> Dropdown with CSS appearance: base-select

    Style a real select's dropdown, options and arrow.
    appearance: base-select opts a native <select> into a fully styleable mode — rich HTML in options, <selectedcontent> in the closed button, and ::picker(select), ::picker-icon and ::checkmark for the dropdown, arrow and tick — while keeping its keyboard support, accessibility and form behaviour, with a plain select as the fallback.
    Published at:
    Categories:CSS
    Estimated reading time:9 min read
  • Tutorial:The :open Pseudo-Class for <details>, <dialog> and <select>

    Style anything that opens, selects included, with one pseudo-class.
    Style the open state of <details>, <dialog> and <select> with the CSS :open pseudo-class. Compare it with [open], :popover-open and :modal, with fallbacks.
    Published at:
    Categories:CSS
    Estimated reading time:11 min read
  • Post:What's New in CSS in 2027: What to Expect

    CSS features closest to working everywhere in 2027.
    An evidence-based look at the CSS features most likely to work in every browser in 2027: typed attr(), customisable select, random(), @function and more.
    Published at:
    Categories:CSS
    Estimated reading time:13 min read