Is there a way to create a .testing
element with a width of 100% (150px)?
<div class='debug'>
<div class='debug'>
<div class='testing'>Hello world!</div>
</div>
</div>
*,
*:before,
*:after {
box-sizing: border-box;
}
.debug {
min-height: 100px;
width: 150px;
border: 1px solid red;
}
.testing {
/* width: 150px; */
}
The calculated size is 148px. Why isn't it 150px?