Skip to main content
100% Client-Side Browser Execution
Retro Web Graphics • •Updated Nov 22, 2026 •8 min read

Designing Crisp 88x31 Web Badges & Controlling image-rendering: pixelated

Master the iconic 88x31 indie-web micro-button specification, integer DPI scaling, crisp SVG shape-rendering, and CSS pixel-art preservation.

GG
GraphicsGrotto Editorial & Engineering Desk

Specification-checked across Blink, WebKit & Gecko

Originally popularized by Netscape's "Now! 3.0" button in 1996, the 88×31 pixel micro-badge has enjoyed a lively renaissance across developer blogs, open-source documentation footers, and indie-web directories. Packing a readable icon, border, and two-line label inside just 2,728 total pixels is a masterclass in micro-typography—provided modern high-DPI browsers don't smear your pixels during upscaling.

1. Preventing Blurry Upscaling on Bitmap Badges (image-rendering)

When serving an actual 88×31 .png, .gif, or lossless .webp file, always apply image-rendering: pixelated (with crisp-edges fallback behavior in mind) and lock exact integer dimensions (88px or 176px):

img.badge-88x31 {
  width: 88px;
  height: 31px;
  display: inline-block;
  vertical-align: middle;
  /* Nearest-neighbor upscaling on 2x/3x Retina screens */
  image-rendering: -moz-crisp-edges;
  image-rendering: pixelated;
}
Display / Scaling Factor Default Bilinear <img> image-rendering: pixelated Pure CSS / crispEdges SVG
1x (96 DPI Desktop) Sharp Sharp Sharp
2x / 3x (macOS / iOS Retina) Blurry halo Razor-sharp 2×2 / 3×3 blocks Razor-sharp vector edges
1.25x / 1.5x (Windows Laptop) Blurry halo Slight column width variance Clean proportional layout

2. Zero-Image Pure CSS 88×31 Badge Component

Building 88×31 badges in semantic HTML + CSS weighs 0 external bytes, exposes real accessible link text to screen readers and search engines, and stays legible at any zoom level:

<a href="https://graphicsgrotto.com/" class="css-badge-88x31" title="GraphicsGrotto — CC0 Web Graphics Tools">
  <span class="badge-left">GG</span>
  <span class="badge-right">
    <strong>CSS + SVG</strong>
    <em>CC0 READY</em>
  </span>
</a>
.css-badge-88x31 {
  display: inline-grid;
  grid-template-columns: 26px 1fr;
  width: 88px;
  height: 31px;
  box-sizing: border-box;
  border: 1px solid #0f172a;
  box-shadow: inset 1px 1px 0 rgba(255, 255, 255, 0.5);
  text-decoration: none;
  font-family: ui-monospace, monospace;
  overflow: hidden;
  user-select: none;
}

.css-badge-88x31 .badge-left {
  background: #2563eb;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid #0f172a;
}

.css-badge-88x31 .badge-right {
  background: #f8fafc;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-left: 4px;
  line-height: 1.05;
}

.css-badge-88x31 .badge-right strong {
  font-size: 9px;
  letter-spacing: -0.02em;
}

.css-badge-88x31 .badge-right em {
  font-style: normal;
  font-size: 8px;
  color: #0d9488;
  font-weight: 700;
}

3. Crisp Pixel-Grid SVGs with shape-rendering="crispEdges"

If you draw pixel art as <rect> or <path> elements inside an 88×31 SVG, add shape-rendering="crispEdges" so the browser disables sub-pixel anti-aliasing along orthogonal edges:

<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 31" width="88" height="31" shape-rendering="crispEdges">
  <rect width="88" height="31" fill="#0f172a" />
  <rect x="1" y="1" width="25" height="29" fill="#2563eb" />
  <rect x="27" y="1" width="60" height="29" fill="#ffffff" />
</svg>

Want to embed a standalone micro-badge inside a single-file Markdown or HTML README? Encode it in one click with our Image to Base64 Data URI Generator.

4. Micro-Typography & Layout Grid Anatomy of Iconic 88×31 Badges

Why do some 88×31 badges read clearly from across the room while others turn into an illegible smudge? Inside 88 × 31 pixels, classic badge artists followed strict spatial budgets:

  1. 1px Outer Frame + 1px Inner Highlight (86 × 29 usable canvas): Leaves 29px of interior height.
  2. Left Icon Zone (24px – 28px wide): Houses a bold high-contrast glyph or mascot (16×16 or 20×20 centered with 4px breathing room).
  3. Right Copy Zone (56px – 60px wide): Fits at most 2 lines of 8–11 uppercase characters (5px-tall pixel caps + 2px leading = 12px text block height, leaving crisp top/bottom margins).
  4. High Luminance Separation: Never pair mid-tone cyan on mid-tone blue at 8px text height! Aim for >= 8 : 1 contrast (#ffffff on #1e3a8a or #0f172a on #fef08a).

5.Upscaling Pixel Art Cleanly onto <canvas> for Social Cards (1200×630)

Suppose you designed a crisp 88×31 badge or 64×64 pixel icon and want to share it on social platforms (og:image Open Graph cards) without X/Twitter, LinkedIn, or Discord blurring it with JPEG bilinear scaling!

Pre-scale the pixel graphic by an exact integer factor (8× or 10×) onto a 1200×630 <canvas> with ctx.imageSmoothingEnabled = false before exporting a PNG/WebP social card:

/**
 * Scales tiny pixel art by an exact integer factor (e.g., 8x) with razor-sharp nearest-neighbor edges
 */
export function upscalePixelArtSharp(sourceImg, scaleFactor = 8) {
  const outWidth = sourceImg.naturalWidth * scaleFactor;
  const outHeight = sourceImg.naturalHeight * scaleFactor;

  const canvas = document.createElement('canvas');
  canvas.width = outWidth;
  canvas.height = outHeight;

  const ctx = canvas.getContext('2d');
  // Disable bilinear smoothing BEFORE calling drawImage!
  ctx.imageSmoothingEnabled = false;
  ctx.drawImage(sourceImg, 0, 0, outWidth, outHeight);

  return canvas;
}

Order Matters on <canvas>: Resetting canvas.width or canvas.height resets the entire 2D context state back to browser defaults—setting ctx.imageSmoothingEnabled back to true! Always set ctx.imageSmoothingEnabled = false after assigning canvas.width and canvas.height.

6. Building Responsive "Badge Walls" Without Layout Shift

When displaying a collection of 12 or 24 community 88×31 buttons in an <a> flex grid: - Set explicit width="88" height="31" on every <img> so slow external or local badges never shift row wrapping (0.00 CLS). - Use display: flex; flex-wrap: wrap; gap: 6px; rather than inline whitespace so touch targets stay cleanly separated on mobile viewports. - Add meaningful alt="GraphicsGrotto — Web Graphics Tools" text on every linked badge image so screen readers announce the destination site rather than the raw filename (button_final2.gif).

Combine crisp pixel scaling with 2-color stipple shading from our Ordered Bayer & 1-Bit Dithering Guide.

Frequently Asked Technical Questions

Why do 88x31 pixel badges look blurry on modern laptops and smartphones?

By default, browsers upscale low-resolution bitmaps using bilinear/bicubic interpolation to smooth photography. On an 88x31 pixel-art badge displayed on a 2x Retina screen, bilinear filtering blurs every 1px border and bitmap font into fuzzy soup unless image-rendering: pixelated is set!

Why does image-rendering: pixelated still look slightly uneven at 125% or 150% Windows scaling?

Nearest-neighbor scaling can only duplicate whole pixels cleanly at integer multiples (1x, 2x, 3x). At 1.5x fractional scaling, alternating pixel columns render 1px, 2px, 1px, 2px wide. Building 88x31 badges in crisp SVG or pure CSS avoids fractional uneven columns.

How do you turn off anti-aliasing inside an SVG pixel-art badge?

Add shape-rendering="crispEdges" on the root <svg> element so horizontal and vertical rectangle edges snap cleanly to device pixels without blurry gray fringes.

Editorial Verification

Maintained by the GraphicsGrotto Editorial & Engineering Desk

Code examples and metrics follow W3C SVG/CSS specifications and browser rendering tests. Spotted an engine change or errata?

More in Retro Web Graphics

View Full Silo →