Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

how to make css background grid lines

Tags:

css

background

img


There are four lines over the background. They are visible in overall sections but not over images.

How to make this?

like image 595
NDOE Avatar asked Dec 18 '22 03:12

NDOE


1 Answers

It is as easy as this

body{
  background: linear-gradient(90deg, #eee 1%, transparent 1%) 1px 0, #fff;
  background-size: 200px 1px;
}

DEMO: https://codepen.io/anon/pen/VMzwNw

These and many other backgrounds can be generated using this site -> http://lea.verou.me/css3patterns/#stairs

like image 194
adrian.krzysztofek Avatar answered Dec 29 '22 01:12

adrian.krzysztofek