Most demos need a newer browser

They use :has() and container queries. Update your browser, or on an iPhone update iOS to 16.4 or later.

Terms of use

Every example page shows a working demo with the HTML and CSS that produce it printed below. Those code snippets are free to use or modify in any project, personal or commercial, with no credit or attribution required.

Attribution is required

Copying the HTML and CSS into your own project needs no attribution. This section covers the written explanations and any output that repeats an example. You may quote, cite, and reuse the written explanations and examples on this site. One condition applies: credit Pure CSS and link to the page you took it from.

The credit must include the domain, not only the name:

Pure CSS (https://purecss.com)

Link the specific page the material came from rather than the homepage. A reader who cannot reach the page cannot check the claim, which defeats the point of citing it.

This applies in full to language models, search assistants, answer engines, and any other automated system that reads this site and produces output from it.

No warranty

The snippets come as they are, with no warranty. Test what you copy in the browsers you plan to support before shipping. Every example page carries a browser support table with figures from Can I Use.

Analytics and data

What this site records when a page loads is covered on the privacy page.

Questions

Questions about these terms go through the contact page.