sibling-count() and sibling-index()
Limited availability
The sibling-count()
and sibling-index()
CSS functions return integers that are useful to style elements based on their positions among siblings or on the number of siblings, for example as part of a calc()
expression.
Learn more
No MDN documentation found. You can search for the feature on MDN. If you believe that MDN has no documentation about this feature, you can open an issue on MDN's GitHub repository.Specifications
Browser support
- Chrome 138 Released on 2025-06-24
- Chrome Android 138 Released on 2025-06-24
- Edge 138 Released on 2025-06-26
- Firefox ❌ See bugzil.la/1953973 Vendor position
- Firefox for Android ❌ See bugzil.la/1953973 Vendor position
- Safari ❌ Vendor position
- Safari on iOS ❌ Vendor position
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist