Pure CSS — No JavaScript Required
Build Beautiful CSS Tooltips
in Seconds
Customise position, color, border radius, animation, and arrow. Get clean, copy-paste CSS + HTML instantly — works in every browser.
🎨
Fully Customisable
Control position, colors, padding, border radius, font size, and arrow size with live preview.
⚡
Zero JavaScript
Pure CSS :hover magic — no libraries, no runtime overhead, no dependencies whatsoever.
📋
Copy-Paste Ready
One click copies the generated CSS and HTML. Drop it straight into your project and you're done.
Configuration
#1e293b
#f8fafc
6px
13px
6px
12px
220px
8px
6px
Live Preview
This is a tooltip!
Hover the button to preview the tooltip
Generated Code
CSS
.tooltip-wrapper {
position: relative;
display: inline-block;
}
.tooltip {
position: absolute;
bottom: calc(100% + 14px);
left: 50%;
transform: translateX(-50%);
background-color: #1e293b;
color: #f8fafc;
padding: 6px 12px;
border-radius: 6px;
font-size: 13px;
max-width: 220px;
white-space: nowrap;
z-index: 1000;
pointer-events: none;
opacity: 0;
transition: opacity 0.2s ease;
}
/* Tooltip arrow */
.tooltip::after {
content: '';
position: absolute;
bottom: -6px;
left: 50%;
transform: translateX(-50%);
border-top-color: #1e293b;
border-width: 6px 6px 0 6px;
border-style: solid;
border-color: transparent;
}
/* Reveal on hover */
.tooltip-wrapper:hover .tooltip,
.tooltip-wrapper:focus-within .tooltip {
opacity: 1;
}HTML
<div class="tooltip-wrapper"> <button>Hover over me</button> <span class="tooltip" role="tooltip">This is a tooltip!</span> </div>
Frequently Asked Questions
Everything you need to know about CSS Tooltip Generator.