V
V
Vladislav2021-06-25 13:01:40
css
Vladislav, 2021-06-25 13:01:40

How to make such lines not an image, but pure CSS?

How to make such lines not an image, but pure CSS? 60d5a981b3fa0869810563.jpegit is understood that through the author / befo, but there is no indication of the repetition of one strip

Answer the question

In order to leave comments, you need to log in

2 answer(s)
A
Ankhena, 2021-06-25
@SlavaMaxwell

Gradient

background: linear-gradient(to right, red 8px, transparent 8px) repeat-x left / 10px 2px;

https://jsfiddle.net/bohny472/

S
Stalker_RED, 2021-06-25
@Stalker_RED

<div style="width: 400px; border-top: dashed 3px green;">

You can use pseudo-elements.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question