I have 2 divs
<div id=number1><div id=number2></div></div>
Why
#number1 { background:red; } #number2 { background:blue; height: 200px; margin: 10px; }
Not the same as
#number1 { background:red; padding:10px; } #number2 { background:blue; height: 200px; }
And in the first case, I get white lines above and below, where it is assumed that this is the red color of div 1? http://jsfiddle.net/ZbCNq/
source share