<div class="parent">
<div class="child"></div>
</div>
/* Final Width: 200px */
div.parent {
width: 200px;
}
/* Final Width: 202px (with border) */
div.child {
width: 100%;
border: 1px solid #000000;
}
/* Final Width: 200px (with border) */
div.child {
/* Width Inherited -- Assumed as 200px? */
border: 1px solid #000000;
}
Why is it that works the way it does, when you would think it wouldn't, is it standard or specific to browser implementation?