<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2" -->

---
title: The customizable select - Part three: Sticky Options
description: A hands-on CSS tutorial building an emoji picker using the new customizable `<select>` element, demonstrating sticky positioning on the `:checked` option...
canonical: https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The customizable select - Part three: Sticky Options | daily.dev
og:description: A hands-on CSS tutorial building an emoji picker using the new customizable `<select>` element, demonstrating sticky positioning on the `:checked` option...
og:url: https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2
og:image: https://api.daily.dev/og/posts/FzLYxcjP2.png
og:image:alt: The customizable select - Part three: Sticky Options
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# The customizable select - Part three: Sticky Options

**[utilitybend](https://daily.dev/sources/utilitybend)** · 9 min read · 0 upvotes · 0 comments

## Summary

A hands-on CSS tutorial building an emoji picker using the new customizable `<select>` element, demonstrating sticky positioning on the `:checked` option combined with anchor positioning, top-layer transitions, and `interpolate-size: allow-keywords` for a smooth open/close width animation. Includes full HTML/CSS code, notes a current touch-device pointer-events workaround, and flags minor VoiceOver accessibility inconsistencies observed during testing. Part of a multi-part series on the customizable select.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://utilitybend.com/blog/the-customizable-select-part-three-sticky-options>

## Questions this post answers

### How do I animate a customizable select's picker from a fixed width to auto width in CSS?

Set interpolate-size: allow-keywords on the root, then transition the width property on select::picker(select), pairing a fixed width in @starting-style with width: auto in the open state. Because interpolate-size allows keyword values like auto to be interpolated, the browser can smoothly animate between the fixed and auto widths instead of jumping instantly.

_daily.dev surfaces practical CSS techniques like this for developers experimenting with customizable selects._

### How do you make a selected option stick to the edge of a customizable select picker with CSS?

Apply position: sticky along with inset-block: 0, inset-inline-end: 0, and z-index: 1 to the option's :checked pseudo-class. Combined with overflow: auto on the flex-wrapped options container, this makes the checked emoji option stick visually in place as the picker scrolls, creating a dragging effect toward the center.

_Developers building custom select interactions can track CSS tricks like this via daily.dev._

### Why do the ::picker(select) and overlay properties need transition-behavior: allow-discrete to animate?

Because the ::picker(select) element lives in the top-layer outside normal document flow, properties like display and overlay are discrete (non-interpolable) by default, so transition-behavior: allow-discrete must be set to let them participate in a transition alongside @starting-style, enabling a smooth open animation instead of an abrupt show/hide.

_daily.dev helps developers keep up with emerging top-layer and CSS transition techniques like this._

## Similar posts on daily.dev

- [Abusing Customizable Selects](https://daily.dev/posts/abusing-customizable-selects-hyfhou2vz) · CSS-Tricks · 14 upvotes · 1 comments
- [Nice Select · February 3, 2026](https://daily.dev/posts/nice-select-february-3-2026-d8jdnzuo9) · Adam Argyle · 3 upvotes · 0 comments
- [The Goldilocks customizable select height](https://daily.dev/posts/the-goldilocks-customizable-select-height-yfspphtgb) · Jake Archibald · 7 upvotes · 2 comments
- [The <selectmenu> Element: Stop Using JavaScript Dropdown Libraries](https://daily.dev/posts/the-selectmenu-element-stop-using-javascript-dropdown-libraries-22c9sm7x7) · SitePoint · 22 upvotes · 0 comments

---

Tags: [#css](https://daily.dev/tags/css), [#accessibility](https://daily.dev/tags/accessibility)

[View this post on daily.dev](https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"The customizable select - Part three: Sticky Options","url":"https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2"},"datePublished":"2026-09-20T07:43:22.062Z","dateModified":"2026-09-20T07:44:53.501Z","description":"A hands-on CSS tutorial building an emoji picker using the new customizable `\u003cselect\u003e` element, demonstrating sticky positioning on the `:checked` option...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e304e1d0b12be1b2a51c36d4a2d4945?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/3e304e1d0b12be1b2a51c36d4a2d4945?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"utilitybend","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"utilitybend","logo":"https://media.daily.dev/image/upload/s--hONVFSz4--/f_auto,q_auto/v1789890196/logos/utilitybend?_a=BAMAMicg0","url":"https://daily.dev/sources/utilitybend"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css,accessibility","timeRequired":"PT9M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"utilitybend","item":"https://daily.dev/sources/utilitybend"},{"@type":"ListItem","position":3,"name":"The customizable select - Part three: Sticky Options"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-customizable-select---part-three-sticky-options-fzlyxcjp2#faq","mainEntity":[{"@type":"Question","name":"How do I animate a customizable select's picker from a fixed width to auto width in CSS?","acceptedAnswer":{"@type":"Answer","text":"Set interpolate-size: allow-keywords on the root, then transition the width property on select::picker(select), pairing a fixed width in @starting-style with width: auto in the open state. Because interpolate-size allows keyword values like auto to be interpolated, the browser can smoothly animate between the fixed and auto widths instead of jumping instantly. daily.dev surfaces practical CSS techniques like this for developers experimenting with customizable selects."}},{"@type":"Question","name":"How do you make a selected option stick to the edge of a customizable select picker with CSS?","acceptedAnswer":{"@type":"Answer","text":"Apply position: sticky along with inset-block: 0, inset-inline-end: 0, and z-index: 1 to the option's :checked pseudo-class. Combined with overflow: auto on the flex-wrapped options container, this makes the checked emoji option stick visually in place as the picker scrolls, creating a dragging effect toward the center. Developers building custom select interactions can track CSS tricks like this via daily.dev."}},{"@type":"Question","name":"Why do the ::picker(select) and overlay properties need transition-behavior: allow-discrete to animate?","acceptedAnswer":{"@type":"Answer","text":"Because the ::picker(select) element lives in the top-layer outside normal document flow, properties like display and overlay are discrete (non-interpolable) by default, so transition-behavior: allow-discrete must be set to let them participate in a transition alongside @starting-style, enabling a smooth open animation instead of an abrupt show/hide. daily.dev helps developers keep up with emerging top-layer and CSS transition techniques like this."}}]}
```

