<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp" -->

---
title: The customizable select - Part two: Potions, anchoring,...
description: A hands-on deep dive into building a radial 'potion picker' UI using the new CSS customizable select feature combined with CSS anchor positioning. The...
canonical: https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: The customizable select - Part two: Potions, anchoring, and radial shenanigans in CSS | daily.dev
og:description: A hands-on deep dive into building a radial 'potion picker' UI using the new CSS customizable select feature combined with CSS anchor positioning. The...
og:url: https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp
og:image: https://api.daily.dev/og/posts/iSorZzSzP.png
og:image:alt: The customizable select - Part two: Potions, anchoring, and radial shenanigans in CSS
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 two: Potions, anchoring, and radial shenanigans in CSS

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

## Summary

A hands-on deep dive into building a radial 'potion picker' UI using the new CSS customizable select feature combined with CSS anchor positioning. The walkthrough covers HTML markup with selectedcontent, progressive enhancement with appearance: base-select, styling the ::picker(select) with anchor(center), and using CSS custom properties with :has() and :nth-child() to fan options out in a circle based on their count. It also previews the upcoming sibling-count() and sibling-index() functions that would simplify the rotation math, and links to a Chrome Canary demo.

## 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-two-potions-anchoring-and-radial-shenanigans-in-css>

## Questions this post answers

### How do I anchor the ::picker(select) element to the select button in CSS?

Use CSS anchor positioning by setting top: anchor(center) and left: anchor(center) on ::picker(select), then apply transform: translate(-50%, -50%) to center it precisely over the select button. No explicit anchor-name is needed because the picker is automatically associated with its select via anchor positioning. Also set overflow: visible to avoid scrollbar flashing during transitions.

_Developers wiring up anchor positioning for custom selects can track CSS platform changes on daily.dev._

### How can I make CSS options fan out in a circle around a select button using transforms?

Apply a combined transform of rotate(var(--deg)) translate(var(--half-circle)) rotate(var(--negative)) to each option. The first rotate spins the option around the center, translate pushes it outward along that rotated axis onto the circle's circumference, and the final counter-rotate keeps the option's content upright. The --deg and --half-circle values are custom properties calculated from the circle size and number of options.

_Anyone building radial CSS layouts can find worked examples like this through daily.dev._

### How do I dynamically calculate rotation angles for a variable number of sibling elements in CSS today, before sibling-count() is supported?

Use :has() combined with :nth-child() on a wrapper element to detect how many children exist, then set a --rotation-divide custom property accordingly, for example calc(360deg / 3) when a third option is present. Separate :nth-child() rules on each option multiply --rotation-divide by their index to get --deg. In the future, sibling-count() and sibling-index() will reduce this to a single line per rule.

_Developers working around missing sibling-count() support can follow CSS feature progress via daily.dev._

## 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
- [CSS in 2026: The new features reshaping frontend development](https://daily.dev/posts/css-in-2026-the-new-features-reshaping-frontend-development-rhaxhc6ob) · LogRocket · 7 upvotes · 0 comments

---

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

[View this post on daily.dev](https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp)

```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 two: Potions, anchoring, and radial shenanigans in CSS","url":"https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp"},"datePublished":"2026-09-20T07:43:28.705Z","dateModified":"2026-09-20T08:14:04.841Z","description":"A hands-on deep dive into building a radial 'potion picker' UI using the new CSS customizable select feature combined with CSS anchor positioning. The...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cbbe3c5ca63ad7d911f33cb899f93877?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/cbbe3c5ca63ad7d911f33cb899f93877?_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-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":0},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"css","timeRequired":"PT14M"}
{"@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 two: Potions, anchoring, and radial shenanigans in CSS"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/the-customizable-select---part-two-potions-anchoring-and-radial-shenanigans-in-css-isorzzszp#faq","mainEntity":[{"@type":"Question","name":"How do I anchor the ::picker(select) element to the select button in CSS?","acceptedAnswer":{"@type":"Answer","text":"Use CSS anchor positioning by setting top: anchor(center) and left: anchor(center) on ::picker(select), then apply transform: translate(-50%, -50%) to center it precisely over the select button. No explicit anchor-name is needed because the picker is automatically associated with its select via anchor positioning. Also set overflow: visible to avoid scrollbar flashing during transitions. Developers wiring up anchor positioning for custom selects can track CSS platform changes on daily.dev."}},{"@type":"Question","name":"How can I make CSS options fan out in a circle around a select button using transforms?","acceptedAnswer":{"@type":"Answer","text":"Apply a combined transform of rotate(var(--deg)) translate(var(--half-circle)) rotate(var(--negative)) to each option. The first rotate spins the option around the center, translate pushes it outward along that rotated axis onto the circle's circumference, and the final counter-rotate keeps the option's content upright. The --deg and --half-circle values are custom properties calculated from the circle size and number of options. Anyone building radial CSS layouts can find worked examples like this through daily.dev."}},{"@type":"Question","name":"How do I dynamically calculate rotation angles for a variable number of sibling elements in CSS today, before sibling-count() is supported?","acceptedAnswer":{"@type":"Answer","text":"Use :has() combined with :nth-child() on a wrapper element to detect how many children exist, then set a --rotation-divide custom property accordingly, for example calc(360deg / 3) when a third option is present. Separate :nth-child() rules on each option multiply --rotation-divide by their index to get --deg. In the future, sibling-count() and sibling-index() will reduce this to a single line per rule. Developers working around missing sibling-count() support can follow CSS feature progress via daily.dev."}}]}
```

