Home / Code typing practice / CSS

Free code typing practice

CSS Typing Practice

Free CSS typing practice: type real CSS with selectors, braces, colons, semicolons, media queries and custom properties. Build speed for front-end styling.

CSS has a steady rhythm of property, colon, value, semicolon, wrapped in braces. Hyphenated property names, # colours, @media rules and -- custom properties make it a good workout for the right little finger.

The snippets cover grid and flex layouts, media queries, hover and focus states, grid-template-columns and :root variables.

CSS code you will type

Each session picks from these, in random order. Line breaks are shown as single spaces.

.card { display: grid; gap: 12px; padding: 16px; border-radius: 8px; }
@media (max-width: 600px) { .sidebar { display: none; } }
a:hover, a:focus-visible { color: #1d4ed8; text-decoration: underline; }
.grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
:root { --accent: #2563eb; --radius: 6px; }

Symbols to watch

{ }:;-#.@( )

Not sure which finger to use? See the programming symbols finger chart.

Tips for typing CSS faster

  • Property, colon, space, value, semicolon: practise it as a rhythm, not as separate keys.
  • The hyphen is under your right little finger; CSS names like grid-template-columns use it constantly.
  • The # for colours is Shift and 3: left middle finger with the right Shift.

Frequently asked questions

Is CSS worth typing practice?

Yes. Colons, semicolons, braces and hyphens make up a big share of every stylesheet.

Does CSS practice help with Tailwind?

Partly. Tailwind uses hyphenated class names and colons for variants, so the hyphen and colon practice carries over.

Practise typing other languages

All code typing practice