I would like a div to take all the screen height, that’s why I found the following links:
- http://www.webmasterworld.com/forum83/200.htm
- http://www.thefutureoftheweb.com/blog/100-percent-height-interface
the tricks: make the container have a specified height, for example: body{height:100%} seems work fine, however, I found that: once you add some doctype claim, for example:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
It doesn’t work, at least at Firefox 3.*, it doesn’t work. Any suggestions?
The following works for me in HTML 4.01 strict (from your second link). No vertical scroll bar is displayed, even if the
bodyis very long. Does this work for you?