21 CSS Tooltips
21 CSS tooltips and hover cards for developer toolbars, form fields, and IDE signatures, data tables and status dashboards, avatar mentions and org charts, and reference cards for glossaries, recipes, EXIF, constellations, and the periodic table — spanning pill tooltips with CSS arrows, staggered profile reveals, rarity-tinted item cards, and side-anchored hint popovers. Scoped under .tp-NN for no-collision pasting, prefers-reduced-motion guarded, framework-agnostic.
Related20 CSS Popovers30 CSS Badges20 CSS Kbd Keys20 CSS Copy Buttons21 Tailwind CSS Tooltips
Course pickPartner: Zero to Mastery
Affiliate linkWant to build production-ready CSS layouts, animations and UI from scratch?
You just browsed 21 tooltips. Learn the Flexbox, Grid and animation thinking behind them, so the next component starts in your head, not in a copy-paste.
Every ZTM course in one membership: $25/month, paid yearly at $299 · 30‑day money-back guarantee
The CSS Bootcamp. We may earn a commission, at no extra cost to you.
02. Keyboard Shortcut Hint (opens in a new tab)
03. IDE Function Hover (opens in a new tab)
04. Editorial Footnote (opens in a new tab)
05. Profile Card (opens in a new tab)
06. Inventory Tooltip (opens in a new tab)
07. Glossary Word Card (opens in a new tab)
08. Service Status Dots (opens in a new tab)
09. Team Avatar Card (opens in a new tab)
10. Keyboard Shortcut Card (opens in a new tab)
11. Data Table Cell (opens in a new tab)
12. Content Tag Card (opens in a new tab)
13. Airport Departures Board (opens in a new tab)
14. Recipe Ingredient Card (opens in a new tab)
15. Orion Constellation Chart (opens in a new tab)
16. Periodic Table Element (opens in a new tab)
17. Photo EXIF Grid (opens in a new tab)
18. Org Chart Node (opens in a new tab)
19. Event Timeline (opens in a new tab)
20. Icon Toolbar (opens in a new tab)
21. Form Field Help (opens in a new tab)
Frequently asked questions
What is a CSS tooltip?
:hover — but the typography, density, and motion belong to each individual use case. This collection treats twenty-one different use cases as twenty-one different design opportunities rather than twenty-one skins of the same gray rectangle.How do I keep tooltip styles from leaking between demos?
.tp-01, .tp-02, .tp-03 and so on through .tp-21 — with BEM-style children like .tp-01__paper, .tp-01__note, .tp-01__hot. No demo defines a .tooltip or .tip class that could collide with anything else. You can drop any two of these onto the same page with zero style bleed. Adding a twenty-second tooltip is a matter of picking .tp-22 and scoping every selector under it.Are these accessible?
:focus-visible (or :focus-within) to every hover selector so keyboard users can reach the tooltip, and you must wire aria-describedby on the trigger pointing at the tooltip's id so screen readers announce the content. Tooltips that carry meaningful information (not just labels) also need to be dismissible without leaving the trigger — that requires a small piece of JavaScript and the Escape key. The CSS scaffolding is the easy part; production-grade tooltip accessibility is non-trivial. The W3C ARIA Authoring Practices Guide has the full pattern.Do tooltips need JavaScript?
style attributes so adapting them to your data is a string replacement. JavaScript only enters the picture for full keyboard support, focus management, and dismissibility — the things the W3C ARIA tooltip pattern requires for production use.When should I use a tooltip versus a popover?
pointer-events: none on a tooltip versus pointer-events: auto on a popover, plus keyboard / focus behavior for interactive panels.How do I adapt the data-rich tooltips to real data?
style="width:62%" so a templating engine swap is trivial. For the table cell and departures tooltips, the percentages and the change-vs-prior text are real strings, not generated. Keep the markup structure, replace the content.Why fonts from Google Fonts instead of system fonts?
@import declaration in the first demo loads every font family the collection needs, in one network round-trip. If you ship only one demo, drop the families you don't use from the @import URL.Related collections
30 CSS Badges
30 hand-coded CSS badges for status indicators, notifications, membership tiers, live-data displays, and SEO / DevOps / financial dashboards — upload progress, typing indicator, transit line status, Core Web Vitals, ECG heartbeat, CI/CD build pipeline, countdown ring, live price ticker, keycap shortcut, wax seal, conference lanyard, and holographic collectibles. Copy-paste HTML and CSS, WCAG 2.2 accessible, MIT licensed.
20 CSS Banners & Alerts
20 hand-coded CSS banner and alert bars for e-commerce storefronts, SaaS dashboards, marketing sites, and compliance-bound products. Covers GDPR cookie consent with a real preferences panel, promo bars with countdown timers, free-shipping threshold progress, app-install smart banners, maintenance and incident status bars, newsletter signup bars, age verification gates, limited-stock urgency banners, live event announcements, browser upgrade notices, geo and currency switchers, sticky top announcement bars, bottom cookie bars, inline form validation alerts, icon-aligned alert banners, left-border accent alerts, diagonal stripe promos, full-width hero banners, animated gradient border alerts, and a text-wrapping laboratory that shows five strategies for the unbreakable string that breaks more banners than anything else. Every bar is scoped under a .ba-NN prefix for no-collision pasting, guards prefers-reduced-motion, carries the correct aria-live and role semantics, and ports unchanged to React, Vue, Svelte, Astro, Next.js and Tailwind.
25 CSS Blockquotes
25 CSS blockquotes for article pull quotes, testimonial cards, docs callout admonitions, statement banners, and social-post embeds. Covers giant decorative quotation marks, minimalist hairline and classic left borders, animated gradient and glowing neon borders, glassmorphism and aurora backgrounds, brutalist cards, speech bubbles, thick accent rails, highlighted mark text, newspaper multi-column layouts, an expandable read-more disclosure, a scroll-snap testimonial slider, and one-click copy.


















