DIV inside DIV, second DIV has a top-margin - why doesn't even that work?
I'm a self-proclaimed novice developer. But I'm having a serious case of the mondays. Check this out:
This is my HTML:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
...and this is my CSS...
margin: 20px 0 0 0;
Why won't DIV #b push DIV #a up? I should see 20 pixels of DIV #a's red background. But I don't, unless I add overflow: auto or a border to DIV #a.
I know you're all gonna laugh at me... but please let me know what to Google for to learn this strange behaviour!