0

I'm trying to create a striped background for a page. Ideally the stripes need to have solid edges, however when I attempt this the edges are all slightly blurry. Am I missing something here?

.timeline {
width: 100%;
height: 1800px;
background-size: 1800px 1800px;
background-image: linear-gradient(0deg, #dbe4ea 25%, #f6f6f6 25%, #f6f6f6 50%, #dbe4ea 50%, #dbe4ea 75%, #f6f6f6 75%, #f6f6f6 100%);
}
<div class="timeline"></div>
Sam Johnson
  • 742
  • 1
  • 8
  • 24

1 Answers1

0

.timeline {
width: 100%;
height: 1800px;
background: repeating-linear-gradient( 
        0deg,
        #dbe4ea,
        #dbe4ea 100px,
        #f6f6f6 100px,
        #f6f6f6 200px);
}
<div class="timeline"></div>

Hopefully this helps. I figured out why it was going blurry. It's because you have that 75% in there. At least when I was trouble shooting that is what happened for me.

Bayli Sade
  • 49
  • 5