how can I modify these divs so that when I change their padding, their height and width do not expand? I have tried to implement
.outer, .inner {
display: block;
}
.outer {
/* specify fixed width */
width: 300px;
padding: 0;
}
.inner {
/* specify padding, can be changed while remaining fixed width of .outer */
padding: 5px;
}
from here
by giving the parent divs fixed_width and relative_container width:700px;height:100px; padding:0px;, but when I apply padding to .content or .obscure, the divs expand to cover .extra_margins below. Thanks!