Skip to content
Jellykit

CSS Playground

Write CSS and watch it restyle a ready-made sample page as you type, at full, tablet or phone width.

  • Runs on your device
Loading tool

About CSS Playground

Try out a stylesheet without setting up a project. Pick one of three sample pages (an article with a table, a booking form, or a row of pricing cards), write CSS beside it, and the preview restyles itself a moment after you stop typing. Switch the preview to tablet or phone width to check a media query.

The tool also points out the slips that make a browser quietly ignore the rest of a stylesheet: a brace with no partner, a comment that never closes, a quote left open. When you are happy, copy the CSS or save it, or save the whole page as one HTML file.

How it works

  1. The sample page and your CSS are placed together in a sandboxed preview frame that cannot reach the rest of this page or submit a form, and whose policy refuses every script.
  2. The preview frame also refuses every network request, so an @import, a web font or a url() image that points elsewhere does not load there. A data: URL does.
  3. The checker follows the CSS rules for comments, strings and escapes to find unpaired braces, unclosed comments and broken strings, and gives the line of each. It does not judge property names or values.
  4. Your CSS stays in this tab. The sample page and the preview width are kept in the address, so a copied link reopens the same page; the CSS itself is not.

Questions

Can I use my own HTML?

Not in this tool: it styles one of three fixed sample pages, chosen to cover headings, text, lists, a table, form controls and a card grid. The sample markup is shown in the saved HTML file if you want to see which classes it uses.

Why does my web font or background image not show?

The preview blocks every request, so nothing in it can contact another site. Fonts and images given as data: URLs still work, and the saved HTML file has no such block, so it loads them when you open it.

Does it check that my properties are valid?

No. It finds the structural mistakes that make a browser drop the rest of a stylesheet. A misspelled property or an invalid value is simply ignored by the browser, and the preview shows you that it had no effect.

How much CSS can it take?

Up to 512 KB of text, which is larger than almost any real stylesheet. More than that is refused with a message rather than slowing the page down.

Is my CSS sent anywhere or saved?

No. It is kept in memory in this tab and is gone when you close it. Nothing is uploaded, and the CSS is not put in the address.

Everything you enter here is processed in this browser tab. Nothing is uploaded, logged or shared. How privacy works here.