I've read CSS background stripes tutorials, but I don't seem to find a solution to this problem. What if I want diagonal white lines of just 1px wide alternating with transparent stripes of about 10px wide? Like this:
The code I have now is:
.stripes {
    background: repeating-linear-gradient(
      45deg,
      transparent 46%, #fff 49%, #fff 51%, transparent 55%
    );
    width: 180px;
    height: 56px;
    z-index: 99;
    position: absolute;
    left: 0;
    top: 0;
}
But this makes blurry, thick white lines. I'm new on this concept.

                        
To get exact pixel dimensions, you can use pixels instead of percentages:
An alternative method, but gives the same results. Something to do with the way browsers render (no anti-aliasing):