Skip to content
Novus Examples
css205 B

CSS — Hello World

A minimal stylesheet that centres a heading with grid — the simplest useful CSS file for testing highlighters, CSS parsers, and minifiers.

Preview — first 13 linescss
/* A minimal stylesheet: center a heading on the page. */
body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: system-ui, sans-serif;
}

h1 {
  color: #059669;
}

Specifications

Language
CSS
Kind
hello-world
Lines
12
Encoding
UTF-8
Line Endings
LF

What is a .css file?

CSS (.css) is a plain-text stylesheet describing how HTML elements are presented — colors, layout, typography, and responsive behaviour. It uses selectors paired with declaration blocks, and modern CSS adds custom properties (variables), flexbox and grid layout, and media queries.

How to use this file

Use an example .css file to test syntax highlighters, CSS parsers and minifiers, linters (stylelint), and pipelines that process or bundle stylesheets.

Generated by generation/code_samples.py. Free for any use, no attribution required — license.