51 CSS Buttons
46 / 51

All 51 in 51 CSS Buttons

  1. 01CSS Submit Button (Form Primary)
  2. 02CSS Primary and Secondary Button Pair
  3. 03CSS Ghost / Outline Button
  4. 04CSS Icon-Only Button with Accessible Tooltip
  5. 05CSS Gradient CTA Button
  6. 06CSS Loading Spinner Button (State Transition)
  7. 07CSS Disabled Button State (Full State Reference)
  8. 08CSS Button Group Component (Segmented Radio-Like)
  9. 09CSS Add to Cart Button
  10. 10CSS Download Progress Button
  11. 11CSS Like Heart Button
  12. 12CSS Confirm Delete Button
  13. 13CSS Play Pause Button
  14. 14CSS Subscribe Confetti Button
  15. 15CSS Magnetic Mercury Ripple Button
  16. 16CSS Brutalist Glitch Button
  17. 17CSS Neon Plasma Burst Button
  18. 18CSS Clay Press Button
  19. 19CSS Editorial Ink Spread Button
  20. 20CSS Particle Shard Burst Button
  21. 21CSS Brushed Brass Plate Button
  22. 22CSS Washi Paper Crane Button
  23. 23CSS Frosted Ice Cube Button
  24. 24CSS Vintage Typewriter Key Button
  25. 25CSS Lacquered Walnut Wood Button
  26. 26CSS Pharma Gel Capsule Button
  27. 27CSS Aged Copper Coin Button
  28. 28CSS Origami Fortune Cookie Button
  29. 29CSS Holographic Foil Sticker Button
  30. 30CSS Brutalist Concrete Slab Button
  31. 31CSS Mercury Bead Morph Button
  32. 32CSS Soft Pill Modern SaaS Button
  33. 33CSS Masking Tape Label Button
  34. 34CSS Obsidian Glass Shard Button
  35. 35CSS Wine Velvet Ribbon Button
  36. 36CSS LED Segment Display Button
  37. 37CSS Cassette Mixtape Label Button
  38. 38CSS Chalkboard Menu Button
  39. 39CSS Vinyl Record Sleeve Ripple Button
  40. 40CSS Polaroid Snapshot Button
  41. 41CSS Airline Boarding Pass Button
  42. 42CSS Aged Brass Subway Token Button
  43. 43CSS Vintage Rx Pharmacy Label Button
  44. 44CSS Bakelite Radio Dial Toggle Button
  45. 45CSS Regal Postage Stamp Button
  46. 46CSS Victorian Cigar Band Foil Button
  47. 47CSS Vintage Calculator Key Button
  48. 48CSS Toolbox Latch Spotlight Button
  49. 49CSS Receipt Paper Total Count-Up Button
  50. 50CSS IBM Punch Card Magnetic Follow Button
  51. 51CSS Brass Periscope Lens Button
Pure CSSMIT licensed

CSS Victorian Cigar Band Foil Button

A cigar band in embossed gold foil: scalloped top and bottom edges, a guilloché lattice engraved into the field, a laurel medallion struck in the centre, and small-caps lettering raised with a two-tone bevel. Hover tilts the foil so the light runs the other way.

Live Demo
Plain CSSTailwind v4
Try it

Build UI like this from scratch: Flexbox, Grid, animations & responsive CSS

ZTM · The CSS Bootcamp · 30‑day money-back guarantee · Affiliate link

10% off at checkout with code
Check ZTM Course

The code

<div class="cb-46">
  <div class="cb-46__stage">
    <button class="cb-46__btn" type="button">
      <span class="cb-46__lattice" aria-hidden="true"></span>
      <span class="cb-46__medal" aria-hidden="true">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><path d="M12 4c-2.4 2.6-3.4 5.6-3 8.6.3 2.4 1.5 4.4 3 6.4 1.5-2 2.7-4 3-6.4.4-3-.6-6-3-8.6z"/><path d="M8.4 9.6c-1.6.3-2.8 1.2-3.6 2.6M15.6 9.6c1.6.3 2.8 1.2 3.6 2.6"/></svg>
      </span>
      <span class="cb-46__label">Havana Reserve</span>
    </button>
  </div>
</div>
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

.cb-46 {
  --bg: #1a120c;
  --ink: #3c2a0c;
  --ink-hi: #fff3d0;
  --radius: .2rem;
  --serif: "Cinzel",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(32rem 20rem at 50% 42%, rgba(215,170,90,.16), transparent 72%), var(--bg);
  font-family: var(--serif);
}

@media (prefers-color-scheme: light) {
  .cb-46:not([data-theme="dark"]) {
    --bg: #241810;
  }
}

.cb-46[data-theme="light"] {
  --bg: #241810;
}

.cb-46,
.cb-46 *,
.cb-46 *::before,
.cb-46 *::after {
  box-sizing: border-box;
}

.cb-46__stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem,6vw,4rem);
}

.cb-46__btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: .85rem;
  min-height: 4.5rem;
  padding: 1rem 2.4rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(104deg, #7d5a1e, #f6e3ae 22%, #c99f4f 42%, #8d6a2c 58%, #f2dda6 78%, #8a6528);
  background-size: 180% 100%;
  background-position: 0% 0%;
  text-shadow: 0 1px 0 rgba(255,247,220,.72), 0 -1px 0 rgba(60,42,12,.5);
  -webkit-mask: radial-gradient(.42rem .42rem at 50% 100%, #000 96%, transparent 0) 0 0/.84rem .42rem repeat-x, radial-gradient(.42rem .42rem at 50% 0, #000 96%, transparent 0) 0 100%/.84rem .42rem repeat-x, linear-gradient(#000,#000) 0 .4rem/100% calc(100% - .8rem) no-repeat;
  mask: radial-gradient(.42rem .42rem at 50% 100%, #000 96%, transparent 0) 0 0/.84rem .42rem repeat-x, radial-gradient(.42rem .42rem at 50% 0, #000 96%, transparent 0) 0 100%/.84rem .42rem repeat-x, linear-gradient(#000,#000) 0 .4rem/100% calc(100% - .8rem) no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.6));
  transition: background-position .7s cubic-bezier(.16,1,.3,1), translate .3s cubic-bezier(.16,1,.3,1), filter .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.cb-46__lattice {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(30deg, rgba(60,42,12,.16) 0 1px, transparent 1px 7px), repeating-linear-gradient(-30deg, rgba(60,42,12,.14) 0 1px, transparent 1px 7px);
}

.cb-46__medal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--ink);
  background: radial-gradient(circle at 36% 30%, #fbeec2, #c99f4f 62%, #8a6528);
  box-shadow: inset 0 1px 0 rgba(255,247,220,.7), inset 0 -1px 2px rgba(60,42,12,.5), 0 1px 2px rgba(0,0,0,.4);
}

.cb-46__medal svg {
  width: 1.2rem;
  height: 1.2rem;
}

.cb-46__label {
  position: relative;
  z-index: 2;
}

.cb-46__btn:is(:hover,:focus-visible) {
  background-position: 100% 0%;
  translate: 0 -2px;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.65));
}

.cb-46__btn:focus-visible {
  outline: 2px solid #f6e3ae;
  outline-offset: 5px;
}

.cb-46__btn:active {
  translate: 0 1px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
}

.cb-46__btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .75;
}

@media (prefers-reduced-motion: reduce) {
  .cb-46__btn {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-46__btn {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    mask: none;
    -webkit-mask: none;
    text-shadow: none;
    filter: none;
  }

  .cb-46__lattice {
    display: none;
  }

  .cb-46__medal {
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}
Paste this into ChatGPT, Claude, Cursor, or any coding assistant. The block below is pre-framed with everything the AI needs to integrate this demo into your project — markup, styles, scoping notes, and the source URL. Hit Copy and paste straight into your chat.
Here's a working CSS Button from CodeFronts. Use it as-is or adapt to your framework. All classes are scoped under a unique prefix so the code won't collide with your existing styles. MIT licensed.
Demo: CSS Victorian Cigar Band Foil Button
Source: https://codefronts.com/components/css-buttons/css-victorian-cigar-band-foil-button/

A cigar band in embossed gold foil: scalloped top and bottom edges, a guilloché lattice engraved into the field, a laurel medallion struck in the centre, and small-caps lettering raised with a two-tone bevel. Hover tilts the foil so the light runs the other way.
## HTML
```html
<div class="cb-46">
  <div class="cb-46__stage">
    <button class="cb-46__btn" type="button">
      <span class="cb-46__lattice" aria-hidden="true"></span>
      <span class="cb-46__medal" aria-hidden="true">
        <svg viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="1.4" stroke-linecap="round"><path d="M12 4c-2.4 2.6-3.4 5.6-3 8.6.3 2.4 1.5 4.4 3 6.4 1.5-2 2.7-4 3-6.4.4-3-.6-6-3-8.6z"/><path d="M8.4 9.6c-1.6.3-2.8 1.2-3.6 2.6M15.6 9.6c1.6.3 2.8 1.2 3.6 2.6"/></svg>
      </span>
      <span class="cb-46__label">Havana Reserve</span>
    </button>
  </div>
</div>
```
## CSS
```css
@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@500;600;700&display=swap');

.cb-46 {
  --bg: #1a120c;
  --ink: #3c2a0c;
  --ink-hi: #fff3d0;
  --radius: .2rem;
  --serif: "Cinzel",ui-serif,Georgia,"Times New Roman",serif;
  width: 100%;
  min-height: 100vh;
  min-height: 100svh;
  display: block;
  background: radial-gradient(32rem 20rem at 50% 42%, rgba(215,170,90,.16), transparent 72%), var(--bg);
  font-family: var(--serif);
}

@media (prefers-color-scheme: light) {
  .cb-46:not([data-theme="dark"]) {
    --bg: #241810;
  }
}

.cb-46[data-theme="light"] {
  --bg: #241810;
}

.cb-46,
.cb-46 *,
.cb-46 *::before,
.cb-46 *::after {
  box-sizing: border-box;
}

.cb-46__stage {
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: clamp(1.5rem,6vw,4rem);
}

.cb-46__btn {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  display: grid;
  grid-auto-flow: column;
  align-items: center;
  gap: .85rem;
  min-height: 4.5rem;
  padding: 1rem 2.4rem;
  border: 0;
  border-radius: var(--radius);
  font: inherit;
  font-size: 1.0625rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ink);
  background: linear-gradient(104deg, #7d5a1e, #f6e3ae 22%, #c99f4f 42%, #8d6a2c 58%, #f2dda6 78%, #8a6528);
  background-size: 180% 100%;
  background-position: 0% 0%;
  text-shadow: 0 1px 0 rgba(255,247,220,.72), 0 -1px 0 rgba(60,42,12,.5);
  -webkit-mask: radial-gradient(.42rem .42rem at 50% 100%, #000 96%, transparent 0) 0 0/.84rem .42rem repeat-x, radial-gradient(.42rem .42rem at 50% 0, #000 96%, transparent 0) 0 100%/.84rem .42rem repeat-x, linear-gradient(#000,#000) 0 .4rem/100% calc(100% - .8rem) no-repeat;
  mask: radial-gradient(.42rem .42rem at 50% 100%, #000 96%, transparent 0) 0 0/.84rem .42rem repeat-x, radial-gradient(.42rem .42rem at 50% 0, #000 96%, transparent 0) 0 100%/.84rem .42rem repeat-x, linear-gradient(#000,#000) 0 .4rem/100% calc(100% - .8rem) no-repeat;
  filter: drop-shadow(0 10px 16px rgba(0,0,0,.6));
  transition: background-position .7s cubic-bezier(.16,1,.3,1), translate .3s cubic-bezier(.16,1,.3,1), filter .3s ease;
  -webkit-tap-highlight-color: transparent;
}

.cb-46__lattice {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .5;
  background: repeating-linear-gradient(30deg, rgba(60,42,12,.16) 0 1px, transparent 1px 7px), repeating-linear-gradient(-30deg, rgba(60,42,12,.14) 0 1px, transparent 1px 7px);
}

.cb-46__medal {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border-radius: 50%;
  color: var(--ink);
  background: radial-gradient(circle at 36% 30%, #fbeec2, #c99f4f 62%, #8a6528);
  box-shadow: inset 0 1px 0 rgba(255,247,220,.7), inset 0 -1px 2px rgba(60,42,12,.5), 0 1px 2px rgba(0,0,0,.4);
}

.cb-46__medal svg {
  width: 1.2rem;
  height: 1.2rem;
}

.cb-46__label {
  position: relative;
  z-index: 2;
}

.cb-46__btn:is(:hover,:focus-visible) {
  background-position: 100% 0%;
  translate: 0 -2px;
  filter: drop-shadow(0 16px 22px rgba(0,0,0,.65));
}

.cb-46__btn:focus-visible {
  outline: 2px solid #f6e3ae;
  outline-offset: 5px;
}

.cb-46__btn:active {
  translate: 0 1px;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,.6));
}

.cb-46__btn:disabled {
  cursor: not-allowed;
  filter: grayscale(.7);
  opacity: .75;
}

@media (prefers-reduced-motion: reduce) {
  .cb-46__btn {
    transition: none;
  }
}

@media (forced-colors: active) {
  .cb-46__btn {
    background: ButtonFace;
    color: ButtonText;
    border: 1px solid ButtonText;
    mask: none;
    -webkit-mask: none;
    text-shadow: none;
    filter: none;
  }

  .cb-46__lattice {
    display: none;
  }

  .cb-46__medal {
    background: ButtonFace;
    border: 1px solid ButtonText;
    box-shadow: none;
  }
}
```

How this works

Scalloped edges are the perforation technique inverted — instead of removing circles, the mask keeps them, producing a repeating bump:

mask:
  radial-gradient(.42rem .42rem at 50% 100%, #000 96%, transparent 0) 0 0/.84rem .42rem repeat-x,
  radial-gradient(.42rem .42rem at 50% 0, #000 96%, transparent 0) 0 100%/.84rem .42rem repeat-x,
  linear-gradient(#000,#000) 0 .4rem/100% calc(100% - .8rem) no-repeat;

The guilloché field is two crossing repeating gradients at 30° and -30°, kept at very low alpha so it engraves rather than stripes. The foil itself is a five-stop gradient — foil never has a single highlight; it has a bright band, a dark band and a second catch:

background:linear-gradient(104deg, #7d5a1e, #f6e3ae 22%, #c99f4f 42%,
  #8d6a2c 58%, #f2dda6 78%, #8a6528);

Hover shifts background-position so the bands travel, which reads as the band being turned in the light rather than a sheen sliding over it.

Make it yours

  • Change scallop size with the mask radius and tile width together (radius = half the tile).
  • Swap the foil for silver or copper by shifting all five stops to the same hue family.
  • Replace the medallion glyph with any monogram or icon; it sits in a normal grid cell.
  • Reduce the lattice opacity for a plainer band, or raise it for a busier Victorian look.

Gotchas — read before shipping

  • Embossed type needs a light shadow below and dark above; reverse them and it looks debossed instead.
  • Gold-on-gold contrast is a real problem — the label here uses a dark ink shadow to stay legible, not just a lighter gold.
  • Multi-layer masks with three declarations must spell out every size and repeat, or the base layer tiles.
  • Ornate styling invites small caps at tiny sizes; keep the cap height at or above 0.75rem.
  • Animating background-position on a five-stop gradient is a repaint; keep the transition short and the element small.

Browser support

ChromeSafariFirefoxEdge
120+15.4+53+120+

mask shorthand with multiple layers: Chrome 120 / Safari 15.4 (prefixed earlier) / Firefox 53. Without it the edges are straight — everything else is identical.

Techniques used in this demo

Search CodeFronts

Loading…