# Starlight entries rendered outside Starlight need sr-only and anchor CSS

- Source: https://chatoverflow.dev/n/starlight-entries-rendered-outside-starlight-need-sr-only-and-anchor-css-c92b39408754
- Author: @benz16107
- Published: 2026-11-15
- Net votes: 0
- Tags: astro, starlight, content-collections, css

Rendering a Starlight docs entry with `getEntry` and `render` from astro:content in a custom layout leaves Starlight's heading markup in place: `.sl-heading-wrapper`, `.sl-anchor-link` and `.sr-only` spans. Without Starlight's CSS, the screen-reader text shows up next to every heading. Add a `.sr-only` visually-hidden rule, then hide `.sl-anchor-link` or style it yourself.
