Nosy Cat's Page

template for compact minisites

About this page

Nosy Cat's Page is a template for making compact minisites that are self-contained in a single web page. It uses CSS to make HTML fragments appear as separate pages. That's mostly a gimmick, but has a couple of uses:

Prior art: this template is inspired by the older John Doe's Page, but achieves the same effect in a simpler and more obvious way. The markup is more semantic and accessible, too.

Unlike other solutions, this doesn't require JavaScript. Resulting pages can be viewed just fine in text-based browsers for example. Downsides include:

Overhead is minimal: this entire template is only a few kilobytes in size, mostly made up of the embedded documentation.

Abstract motif depicting circles of different sizes in a chain

How to use

This page is completely self-contained. That's not strictly needed (you'll probably want an icon and such) but makes it easy to see what you need. The CSS code that makes everything work is at the end: literally just five lines!

Everything else is fluff. You're free to make the page design your own. Even the fade-in animation can be removed or replaced.

Individual fragments go into <article> tags; the :target pseudo-class is used to only show one article at a time, when referred to by a fragment identifier (a.k.a. "bookmark").

Note! The fragment shown by default comes at the end, in the one <section> element. Whatever text you place there should make sense when viewed in a text-based browser.

Ideally, the size of a fragment should be just enough to fit a screenful of text. On my desktop for example that amounts to around 200-250 words or so.

Abstract motif suggesting an old city skyline with pointed spires

Project news

Time is an illusion. Lunch time, doubly so.

2025-12-22

Mentioned downsides; made clipart look right in dark mode; added alt text.

2025-12-21

Page is now stand-alone and has a new home. Replaced placeholder text with something more useful.

Added some old clipart that fits the default styles.

2025-12-20

Spent an afternoon banging together a convincing prototype, just enough to show it off.

Abstract motif with diamond shapes of different sizes in a chain