Dotted or striped background in css

Asked

Viewed 787 times

0

Someone help me make a dotted or striped background in css?

  • You want CSS only or you can use svg or png?

1 answer

1

Follow the code to create the stripes. The first two colors is for the first stripe, and the last two colors for the second.

div { 
background: repeating-linear-gradient(
90deg,
#000,
#000 10px,
#FFE13A 10px,
#FFE13A 20px
);

width: 900px;
height: 900px;

}
<div> </div>

Browser other questions tagged

You are not signed in. Login or sign up in order to post.