BoulderBum
Programmer
This is driving me nuts.
I have a div with style.height set to 100%. It works fine with IE and with FireFox until I introduce a DOCTYPE:
After that, the DIV goes nuts and ignores the height I set for it.
Here's the thing, I set the html and body tags both to have heights of 100%; if I set the background color of the body, I can see that it does indeed fill the page (though the div does not).
Oh, and if I remove the DOCTYPE, it works with FireFox, but not in IE. Arrrggg!
Any ideas?
I have a div with style.height set to 100%. It works fine with IE and with FireFox until I introduce a DOCTYPE:
Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN">
After that, the DIV goes nuts and ignores the height I set for it.
Here's the thing, I set the html and body tags both to have heights of 100%; if I set the background color of the body, I can see that it does indeed fill the page (though the div does not).
Oh, and if I remove the DOCTYPE, it works with FireFox, but not in IE. Arrrggg!
Any ideas?