Vertical Timeline
Clean vertical timeline with dots and connecting line.
2024
Launched v1.0
First public release with core features.
2025
Reached 10k users
Community growth milestone.
2026
What's next
Roadmap in progress.
<div class="w-full max-w-md">
<div class="relative pl-8 pb-8 border-l-2 border-slate-200">
<span class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-indigo-600 border-4 border-white shadow"></span>
<p class="text-xs font-bold text-indigo-600 uppercase tracking-wider">2024</p>
<h3 class="font-bold text-slate-900 dark:text-white mt-1">Launched v1.0</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 mt-1">First public release with core features.</p>
</div>
<div class="relative pl-8 pb-8 border-l-2 border-slate-200">
<span class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-slate-300 border-4 border-white shadow"></span>
<p class="text-xs font-bold text-slate-400 uppercase tracking-wider">2025</p>
<h3 class="font-bold text-slate-900 dark:text-white mt-1">Reached 10k users</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 mt-1">Community growth milestone.</p>
</div>
<div class="relative pl-8 border-l-2 border-transparent">
<span class="absolute -left-[9px] top-0 w-4 h-4 rounded-full bg-slate-300 border-4 border-white shadow"></span>
<p class="text-xs font-bold text-slate-400 uppercase tracking-wider">2026</p>
<h3 class="font-bold text-slate-900 dark:text-white mt-1">What's next</h3>
<p class="text-sm text-slate-500 dark:text-slate-400 mt-1">Roadmap in progress.</p>
</div>
</div>Free to use in personal and commercial projects. No attribution required.
Variants
Same component, different looks. Preview each one live and copy the code you like.
Emerald
Swap to emerald when the timeline covers growth or sustainability milestones.
2024
Carbon neutral
Offset 100 percent of operations.
2025
Zero waste packaging
All shipments plastic free.
2026
What's next
Roadmap in progress.
Numbered
Numbered steps suit how-to guides and onboarding flows better than plain dots.
Step one
Create your account
Sign up with email in under a minute.
Step two
Connect your data
Import from 40 plus integrations.
Step three
Invite your team
Collaborate in real time.
Compact
Use the compact timeline in sidebars and cards where space is tight.
Launched v1.0
First public release.
Reached 10k users
Growth milestone.
What's next
Roadmap in progress.
About this vertical timeline
Vertical timelines turn a boring list of dates into a visual story. They are the standard pattern for company histories, project roadmaps, changelogs, and resume experience sections. A vertical timeline in CSS is just a left border with dots positioned on it, which makes it one of the highest-value simple components you can copy.
Each entry here is a div with border-l-2 forming the line, and an absolutely positioned dot sitting on it. The completed milestone gets the indigo dot; upcoming ones stay gray. The last entry uses border-transparent so the line does not dangle past the final dot.
For longer timelines, alternate sides on desktop with md:pl-0 and md:flex-row-reverse, or keep it single-sided. Single-sided timelines are easier to scan and work better on mobile, which is where most visitors are.
A flat list of dates is hard to scan: visitors can't tell what happened first, what's done, or what's next. The vertical timeline fixes chronology by giving it one visual axis. The line says sequence, the dots say events, and dot color says status. It is the standard for company histories, roadmaps, and changelogs because it turns dates into a story you can scan in seconds.
Each entry is a relative div with pl-8 pb-8 and border-l-2 border-slate-200 forming the line. The dot is absolutely positioned at -left-[9px] top-0, sized w-4 h-4 rounded-full, straddling the border. Status lives in the dot color: bg-indigo-600 for completed, bg-slate-300 for planned, with border-4 border-white shadow punching it out from the line. The final entry swaps the border for a transparent one, so the vertical line terminates at the last dot instead of trailing past it.
Date labels in text-xs font-bold uppercase tracking-wider, tinted to match the dot color, tie each entry together visually. For dense timelines shrink the dots and tighten the padding. On long histories, add sticky year headers so the grouping survives scrolling. Keep it single-sided; alternating sides looks clever on desktop and confusing everywhere else.
The fragile mistake is hardcoding the dot offset (-left-[9px]) while later changing the border width or dot size, which leaves dots floating beside the line. That 9px only works for a w-4 dot on a border-l-2 line: it is (dot width + border width) / 2. If you restyle either, recalculate the offset or the timeline silently breaks.
Where to use it
- ✓ Company history pages
- ✓ Product roadmaps and changelogs
- ✓ Resume experience sections
- ✓ Project milestones
Customization tips
Color the dots by status: indigo for done, amber for in-progress, gray for planned. Add dates as small uppercase labels above each title. For a horizontal timeline on desktop, switch to flex-row with border-t instead of border-l.
Design notes
When to use
Use it for company histories, product roadmaps, changelogs, and resume experience sections. The vertical line with dots turns a flat date list into a visual story that is easy to scan. Color the dots by status so done, in progress, and planned read instantly.
What to avoid
Do not alternate sides on mobile; the zigzag that looks clever on desktop becomes confusing on narrow screens. Do not let it grow into dozens of entries without grouping by year or theme.
Accessibility
Use real list markup like ol and li so the sequence is announced correctly. Mark the dots as decorative and never let color be the only status signal; include text labels too.
Frequently asked questions
How do I build a vertical timeline in CSS?
Give each entry a left border (the line) and absolutely position a dot on it. Stack entries vertically. The last entry should hide its border so the line ends at the final dot.
Should timelines alternate sides?
Alternating looks fancy but hurts scannability. Single-sided timelines are easier to read and work better on mobile. Alternate only for decorative about-pages.
How do I show progress on a timeline?
Color completed dots with your brand color and leave future ones gray. Optionally fill the connecting line up to the current point.
How do I make a vertical timeline responsive on mobile?
Below a breakpoint, move the center line to the left edge and stack all items in a single column with padding-left for the dots. The alternating two-column layout collapses cleanly this way. Keep the dot markers aligned to the line so the timeline still reads top to bottom.
How do I add dates to a vertical timeline?
Put each date in a <time> element above or beside the item title, styled smaller and muted so it reads as metadata. On desktop alternating layouts, place the date on the outer side of each card. Use the datetime attribute with an ISO value for machine readability.
How do I draw the vertical timeline line with CSS?
Add a ::before pseudo-element to the timeline container, positioned absolute with top 0, bottom 0, and a 2px width background. Center it with left 50 percent and translateX(-50%) on desktop, or pin it left on mobile. A subtle gradient that fades at both ends looks more polished than a flat line.
Related elements
Marquee Ticker
Infinite scrolling logo/text ticker, pure CSS.
What is your return policy? +
You can return any item within 30 days of purchase for a full refund. No questions asked.
How long does shipping take? +
Standard shipping takes 3-5 business days. Express options are available at checkout.
Do you ship internationally? +
Yes, we ship to over 50 countries. Rates are calculated at checkout.
Accordion
Smooth FAQ accordion with plus/minus icons.
Masonry Columns
Pinterest style masonry layout using CSS columns with six gradient blocks.