CSS Plus Sign Pattern Background

A plus sign pattern in pure CSS: a grid of small crosses built only from linear gradients, so the corners stay crisp. Set spacing and plus size live.

#f09f33
#f6c380
40px
16px
.bg-plus {
  --bg: #f09f33;
  --fg: #f6c380;
  --size: 40px;
  --plus: 16px;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--bg) calc(50% - var(--plus) / 2), transparent 0 calc(50% + var(--plus) / 2), var(--bg) 0),
    linear-gradient(90deg, var(--bg) calc(50% - var(--plus) / 2), transparent 0 calc(50% + var(--plus) / 2), var(--bg) 0),
    linear-gradient(transparent calc(50% - 2px), var(--fg) 0 calc(50% + 2px), transparent 0),
    linear-gradient(90deg, transparent calc(50% - 2px), var(--fg) 0 calc(50% + 2px), transparent 0);
  background-size: var(--size) var(--size);
}
<div class="
  [--bg:#f09f33]
  [--fg:#f6c380]
  [--size:40px]
  [--plus:16px]
  [background-color:var(--bg)]
  [background-image:linear-gradient(var(--bg)_calc(50%_-_var(--plus)_/_2),_transparent_0_calc(50%_+_var(--plus)_/_2),_var(--bg)_0),_linear-gradient(90deg,_var(--bg)_calc(50%_-_var(--plus)_/_2),_transparent_0_calc(50%_+_var(--plus)_/_2),_var(--bg)_0),_linear-gradient(transparent_calc(50%_-_2px),_var(--fg)_0_calc(50%_+_2px),_transparent_0),_linear-gradient(90deg,_transparent_calc(50%_-_2px),_var(--fg)_0_calc(50%_+_2px),_transparent_0)]
  [background-size:var(--size)_var(--size)]
"></div>
<!doctype html>
<html lang="en">
<head>
  <meta charset="utf-8">
  <meta name="viewport" content="width=device-width, initial-scale=1">
  <title>Plus — CSS background</title>
  <style>
    html, body { height: 100%; margin: 0; }
    .bg-plus {
      --bg: #f09f33;
      --fg: #f6c380;
      --size: 40px;
      --plus: 16px;
      background-color: var(--bg);
      background-image:
        linear-gradient(var(--bg) calc(50% - var(--plus) / 2), transparent 0 calc(50% + var(--plus) / 2), var(--bg) 0),
        linear-gradient(90deg, var(--bg) calc(50% - var(--plus) / 2), transparent 0 calc(50% + var(--plus) / 2), var(--bg) 0),
        linear-gradient(transparent calc(50% - 2px), var(--fg) 0 calc(50% + 2px), transparent 0),
        linear-gradient(90deg, transparent calc(50% - 2px), var(--fg) 0 calc(50% + 2px), transparent 0);
      background-size: var(--size) var(--size);
    }
  </style>
</head>
<body class="bg-plus"></body>
</html>

Save the pattern as an image, with your current colors and settings.

Plus in other colors

Click a color to try it in the preview above, then copy the code.

Browse by color: Red · Orange · Yellow · Green · Teal · Blue · Purple · Pink

How the plus pattern works

This plus sign pattern puts a small cross in the middle of every tile, using only linear-gradient() layers. Drawing the crosses from straight bands, not conic shapes, keeps their corners crisp at every zoom level.

The bottom two layers draw a 4px horizontal line and a 4px vertical line through the middle of the tile, which on their own would make a grid. The top two layers trim that grid down to crosses. Each paints --bg over everything except a window --plus wide around the center, one window across and one down. The horizontal cover hides the vertical line above and below the cross, and the vertical cover hides the horizontal line to its sides. What’s left in the middle is a plus.

--size sets the spacing between crosses and --plus sets their size. Keep --plus smaller than --size so they don’t join up.

Use it for medical and health pages, math and education sites, and subtle texture behind cards.