Anyone who has built a web form knows how HTML <select> elements can look wildly different across browsers—and rarely in a good way. Simon Willison ran into this problem, found Chrome's default styling especially unappealing, and decided to do something about it. Instead of wrestling with CSS by hand, he turned to Claude Fable 5.2 to generate a page demonstrating all the ways <select> boxes can be styled.
After some experimentation, Willison landed on a CSS approach he prefers. The key is to strip away the browser's default look with appearance: none, introduce a custom SVG dropdown arrow, and tweak colours, borders, and padding for a more modern feel.
The CSS That Worked Best
Here's the snippet Willison settled on:
select {
appearance: none;
color: #1f2933;
padding: 0.5em 2.25em 0.5em 0.75em;
border: 1px solid #c4cbd3;
border-radius: 6px;
background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23667085' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 0.75em center / 0.75em;
}
This approach removes the browser's default dropdown arrow and replaces it with an inline SVG, ensuring the look is consistent everywhere. The padding and border-radius give the element a softer, more modern feel. The background SVG is a small down arrow, styled to fit in with typical UI conventions.
Why This Matters for Developers
If you've ever had a form look perfect in Firefox but broken in Chrome, you know the pain. Willison's experiment shows that with a few lines of CSS and an SVG, you can take control of styling and avoid the browser lottery. The fact that this set of styles came out of a session with Claude Fable 5.2 also highlights how AI tools can quickly surface practical solutions to UI quirks that eat up developer time.




