Spreadsheet Range Grid
Worksheet with a name box and formula bar over lettered columns and numbered rows, one column selected as a single outlined range complete with a fill handle at its corner.
- lines of CSS
- 73lines of CSS
- dependencies
- 0dependencies
- baseline browsers
- Newlybaseline browsers
- motion only on interaction
- Hovermotion only on interaction
Vue, Svelte, styled-components and Tailwind exports are part of Pro. HTML, CSS and React are free forever.
.fx-v14-tb-sheet-15816 {
width: 246px;
font-size: 0.64rem;
color: #cbd5e1;
background: #0f1626;
border: 1px solid #253049;
border-radius: 0.45rem;
overflow: hidden;
}
.fx-v14-tb-sheet-15816 .fb {
display: flex;
align-items: center;
gap: 0.4rem;
padding: 0.3rem 0.4rem;
background: #131c31;
border-bottom: 1px solid #253049;
}
.fx-v14-tb-sheet-15816 .nb {
width: 40px;
padding: 0.1rem 0.3rem;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.6rem;
color: #e2e8f0;
background: #0d1424;
border: 1px solid #29344d;
border-radius: 0.2rem;
}
.fx-v14-tb-sheet-15816 .fb i { font-style: italic; font-size: 0.6rem; color: #64748b; }
.fx-v14-tb-sheet-15816 .fx {
flex: 1;
font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
font-size: 0.6rem;
color: #7dd3fc;
}
.fx-v14-tb-sheet-15816 .g {
display: grid;
grid-template-columns: 24px 1fr 1fr 44px;
}
.fx-v14-tb-sheet-15816 .g > span {
padding: 0.26rem 0.4rem;
border-right: 1px solid #1b2438;
border-bottom: 1px solid #1b2438;
font-variant-numeric: tabular-nums;
white-space: nowrap;
overflow: hidden;
}
.fx-v14-tb-sheet-15816 .hc, .fx-v14-tb-sheet-15816 .rn {
font-size: 0.55rem;
text-align: center;
color: #64748b;
background: #131c31;
transition: background 0.16s ease, color 0.16s ease;
}
.fx-v14-tb-sheet-15816 .g > span:nth-child(4n) { border-right: none; }
.fx-v14-tb-sheet-15816 .cB, .fx-v14-tb-sheet-15816 .cD { text-align: right; }
.fx-v14-tb-sheet-15816 .sel { background: rgba(56,189,248,0.13); border-left: 1px solid #38bdf8; border-right: 1px solid #38bdf8; }
.fx-v14-tb-sheet-15816 .s1 { border-top: 1px solid #38bdf8; }
.fx-v14-tb-sheet-15816 .s2 { position: relative; border-bottom: 1px solid #38bdf8; }
.fx-v14-tb-sheet-15816 .s2::after {
content: '';
position: absolute;
right: -3px;
bottom: -3px;
width: 6px;
height: 6px;
background: #38bdf8;
border: 1px solid #0f1626;
}
.fx-v14-tb-sheet-15816 .g:has(.cA:hover) .hA, .fx-v14-tb-sheet-15816 .g:has(.cB:hover) .hB, .fx-v14-tb-sheet-15816 .g:has(.cD:hover) .hD {
color: #e2e8f0;
background: #1e3a5f;
}
.fx-v14-tb-sheet-15816 .g > span:hover { background: rgba(148,163,184,0.1); }<div class="fx-v14-tb-sheet-15816">
<div class="fb">
<span class="nb">B2</span>
<i>fx</i>
<span class="fx">=Q1!C4*1.08</span>
</div>
<div class="g">
<span class="hc"></span>
<span class="hc hA">A</span>
<span class="hc hB">B</span>
<span class="hc hD">C</span>
<span class="rn">1</span>
<span class="cA">Region</span>
<span class="cB">Revenue</span>
<span class="cD">Δ</span>
<span class="rn">2</span>
<span class="cA">EMEA</span>
<span class="cB sel s1">12,480</span>
<span class="cD">+4%</span>
<span class="rn">3</span>
<span class="cA">AMER</span>
<span class="cB sel">18,204</span>
<span class="cD">+9%</span>
<span class="rn">4</span>
<span class="cA">APAC</span>
<span class="cB sel s2">9,116</span>
<span class="cD">−2%</span>
</div>
</div>What do I do with this?
- Put
spreadsheet-range-grid-15817.cssanywhere your page already loads CSS from — in Next.js that isapp/globals.css, or any stylesheet with a<link>in your HTML. - Then put the class on the element you want it on:
<button class="fx-v14-tb-sheet-15816">. The CSS does nothing until a class name in it matches something on the page.
- Link the stylesheet, then paste the markup wherever you need it.
npx hoverlab add spreadsheet-range-grid-15817What's included
- The markup and the stylesheet, in whichever framework you pick
- No runtime dependencies
Works with
- React
- Vue
- Svelte
- Tailwind
- styled-components
- Plain CSS
npx hoverlab add spreadsheet-range-grid-15817
Or over MCP, from your editor's agent — no account needed.
License
Free to read, copy and install, for personal and non-commercial projects. Shipping it in client work or a paid product needs Pro ($79 once). The source lands in your repo and stops being ours — no attribution, nothing to upgrade.
Motion safety
Static estimate, read from the CSS
- Reduced motion
- Brief motion, no guard
Animates briefly or on interaction. Only looping motion gets a guard in this catalog; copy the one from the Insights tab if this ships on a critical path.
- What it animates
- Repaints
Animates
background,color. No reflow, but the browser repaints every frame, which is fine for one element and costly across many. - Flashing (WCAG 2.3.1)
- No flashing found
No repeating change in opacity, colour or brightness large enough to count as a flash.
- Layout shift (CLS)
- No shift expected
Nothing it animates moves or resizes the box in flow. A category from the CSS, not a measurement for this effect.
Every row is read from the shipped CSS. Only a figure marked measured came from a browser. Customizing the speed changes the timing, so recheck a customized copy. How it is computed
33 more effects in Tables & Data Grids
All of them free to read, copy and install — no account, no locked tiles, no watermarked preview. The whole catalog is open, and so are the API and the CLI.
Browse Tables & Data GridsShipping one commercially
Copying the code is free. Putting it in client work or a paid product is what Pro is for — the licence, not the access.
- A commercial licence for everything in the catalog
- Unlimited bundle exports, in Vue, Svelte and Tailwind
- One payment — no subscription, nothing to renew
7 variations of Spreadsheet Range Grid
Finished looks, each one a position in the customizer above. Copy any of them, or open it and keep moving the sliders.