I have been searching for a way to add vertical lines as a background of a div using css but I cannot find this anywhere!
Ideally, I want a div that is 100vh and it has 5 vertical grey lines spaced out evenly as a background. I then want to be able to overlay information - so hoping this can be done through background-image?
Here is something I found but struggling to manipulate it
.lines {
min-height: 100vh;
background-image: linear-gradient(90deg, transparent, transparent calc(100% / 3), black calc((100% / 3) + 1px), transparent calc((100% / 3) + 1px)), linear-gradient(90deg, transparent, transparent calc((100% / 3 * 2) - 1px), black calc(100% / 3 * 2), transparent calc(100% / 3 * 2));
-webkit-transform: translate3d(0, 0, 0);
transform: translate3d(0, 0, 0);
}
<div class="lines">
</div>
Heres the link to the codepen I got it from.. https://codepen.io/redmile/pen/XgZeOX