Answer the question
In order to leave comments, you need to log in
I remember there was a crutch in css that took away its distance from the border, what is it?
Back in those days when they just switched from tabular to block layout and made a sitebar, it was all based on float and fixed width. And if they added a border, everything broke. I now have a very similar problem, it is necessary that the border does not occupy the height in the block, there was either a similar property or something else ... I can’t remember
Answer the question
In order to leave comments, you need to log in
.test {
height: 20px;
border: 1px solid #000;
box-sizing: border-box;
}
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question