Answer the question
In order to leave comments, you need to log in
How can I calculate the remainder of a division using the CSS calc() function?
https://developer.mozilla.org/ru/docs/Web/CSS/calc
need to implement such a perversity
♥{
left: calc(100% % 69px); /* :( */
}
Answer the question
In order to leave comments, you need to log in
So it makes it difficult to calculate these same 69px through a proportion and set it in calc (100% / 6), or how much you get there.
You yourself point to the link to the specification, and it says that only the numerical value of the divisor can be.
In the same way, you can specify both the width of the block and its margin.
Well, or solve this issue through js or scss.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question