P
P
Pavel2015-11-15 09:43:47
css
Pavel, 2015-11-15 09:43:47

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

1 answer(s)
D
Denis Ineshin, 2015-11-15
@mrusklon

.test {
    height: 20px;
    border: 1px solid #000;
    box-sizing: border-box;
}

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question