100% height div with xhtml

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



If my page has a doc type tag of:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd";>

How do I create a div that sizes it's height to 100% of the page?

For example:
<div style="height:100%"></div> will not size to fit the page height, but
if I remove the DOCTYPE tag or set it to something other than XHTML the div
will resize.


.



Relevant Pages

  • Re: CSS-P ? Is it really any good for SERPS ?
    ... >>Speaking of font sizes, does anyone else use fixed pixel sizes for ... >>resize, content does. ... I understand why you spedcified div ... >widths in pixels due to the graphic selections but you limited the ...
    (alt.internet.search-engines)
  • Re: Is this impossible?
    ... I can do this on my machine, using my fonts and sizes. ... you perhaps put a "G" by itself into a DIV and measure it's offsetHeight. ...
    (comp.lang.javascript)
  • Re: Unwanted red line, margins, bottom page margin, em sizes bad, menu item grouping
    ... Don't put them inside a div with a red background, ... determine what sizes the fonts are (especially if you have graphics ...
    (comp.infosystems.www.authoring.stylesheets)
  • aligning objects in Visual Studio 2005
    ... I have two <DIV> areas side by side of different sizes. ... lining them up so that both bottoms are on the same line, ...
    (microsoft.public.dotnet.framework.aspnet)
  • Re: div width, IE7 vs. Firefox2
    ... everything uses absolute positions and sizes. ... I want to have a main content div that expands to fit the screen width ... bottom of my header div. ...
    (comp.infosystems.www.authoring.stylesheets)