Hmm, I think it didn't work in the original code because the doctype forced the browser into standard compliance mode. Then divs won't ever extent beyond their content unless you give them absolute dimensions, like you did.
But if you don't use the doctype, you get what's become known as "quirksmode", which is whatever the browser-makers prefer to do when there were no standards around or they simply disobeyed them
