Skip to content

Vertical timeline in HTML and CSS

A simple vertical timeline to trace a company's history, with date, title and description.

Here is an excerpt of this component's code in HTML and CSS. The full code is free for members, ready to copy into your project.

This component also comes in

Open in a new tab

The code in HTML and CSS

index.html
<!doctype html>
<html lang="fr">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Frise chronologique verticale</title>
    <link rel="stylesheet" href="style.css" />
  </head>
  <body>
    <main class="demo">
      <section class="vt">
        <h2>Notre histoire</h2>
style.css
:root {
  --vt-text: #0b1b3a;
  --vt-muted: #46577a;
  --vt-line: #c9d6f2;
  --vt-dot: #1d4ed8;
  --vt-dot-ring: #f8faff;
  --vt-date: #1d4ed8;
  --demo-bg: #f8faff;
  --demo-text: #0b1b3a;
}

@media (prefers-color-scheme: dark) {

Free component: copy it freely, including for commercial projects.

Timelines components in HTML and CSS
  • A per-version changelog, with date and New, Improved or Fixed labels.

    • Tailwind
    • React
    • CSS
    • WordPress
    Component