Answer the question
In order to leave comments, you need to log in
Is it possible to calculate the size of containers on the calculator?
Is it possible or is it done in some other way?
Answer the question
In order to leave comments, you need to log in
var text = `Text
< asd >
< asd >
<>
< asd >
<>
<>
<>`;
var total = text.match(/<.*>/gm).length;
var asd = text.match(/<\s*asd\s*>/gm).length;
console.log(`${asd}/${total}`);
Let's go,
Border + margin + padding + container body.
The border may not be taken into account if the css rule is box-sizing: border-box;
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question