Docs & tutorials
Responsive design articles, MDN-style references, or framework docs. Readers see exactly how wide their content column is as they follow along.
Generate a live width and breakpoint widget for docs, tutorials and design systems. Preview how it behaves in a responsive content column, then copy the embed code.
Drag the column width to see the embedded widget reflow and cross breakpoints.
<div class="screensize-embed" data-widget="screen-checker" data-theme="auto" data-layout="compact" data-fields="embed,breakpoint,screen,dpr">
<a href="https://screensize.net/embed">Screen size widget by ScreenSize.net</a>
</div>
<script async src="https://screensize.net/embed.js" referrerpolicy="strict-origin-when-cross-origin"></script>The fallback link remains visible when JavaScript is unavailable. Sites may add rel="nofollow" if their linking policy requires it.
Drop the widget anywhere a reader benefits from seeing their own layout width — the frame width reflects the container it lives in, not the browser viewport.
Responsive design articles, MDN-style references, or framework docs. Readers see exactly how wide their content column is as they follow along.
Internal storybooks and component playgrounds. Embed alongside a breakpoint table so devs cross-check the live number against the spec.
Open-source repos explaining viewport behavior. The async loader is tiny and the fallback link degrades cleanly without JS.
| Attribute | Values | Use |
|---|---|---|
| data-theme | auto | light | dark | Match the reader's system theme or force a specific theme. |
| data-layout | compact | full | Use compact for articles and full for wider docs pages. |
| data-fields | embed,breakpoint,screen,dpr | Comma-separated list of metric cards to show. |
The embed is designed as a useful interactive reference, not a link scheme. The public page is indexable, while the iframe runtime and loader script are marked noindex. The widget avoids analytics beacons so third-party embeds do not pollute ScreenSize.net's aggregate viewport data.
The main number is the live width of the embedded widget frame in CSS pixels. It also shows the visitor's screen resolution, DPR and responsive breakpoint context.
No. In an embed, the honest value is the widget frame width. When the widget is placed in a responsive article or docs column, that width shows how the actual content area reflows.
No. The embed runtime does not call ScreenSize.net stats endpoints and does not send page URLs or measurements back to the site.