Get the latest tech news

The <select> element can now be customized with CSS


All the same interfaces, sweet new looks.

This has been many years in the making, many hours of engineering and collaborative specification work, and the result is an incredibly rich and powerful component that won't break in older browsers. A new CSS property appearance: base-select that puts the<select> element into a new, configurable and styleable state to be commonly referred to as "base" styles: However, if you do begin adding rich HTML into your<option> elements, you should test the selected values, as the browser does still parse and ignore images and SVG.

Get the Android app

Or read this on Hacker News

Read more on:

Photo of element

element

Photo of css

css

Related news:

News photo

Minding the gaps: A new way to draw separators in CSS

News photo

You suck at CSS and that's okay (2022)

News photo

Knowing CSS is mastery to Front end Development