Answer the question
In order to leave comments, you need to log in
How to make it so that there is no stairs in the css triangle?
Hello, I made a css triangle, but a 1px ladder is very noticeable on it, how to make it so that regardless of the scale, transparent calc(50% - 1px),
1px is always 1 pixel
div:before {
content: "";
position: absolute;
left: 0;
top: 100%;
width: 100%;
height: 2.5vmin;
background: linear-gradient(
to right top,
transparent calc(50% - 1px),
#1e1e1e 50%
);
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question