Jump to content

saila.com

Online media matters

HTML

Centred box that has a 100% height

Centred box that has a 100% height

This box should be:

  • 200px wide
  • in the centre of the window
  • 100% of the window
  • hold left-aligned text

Tested on Windows 2000 in:

  • IE 5.5+
  • Opera 6.x
  • Mozilla/Netscape 6+

IE 5 on the Macintosh, may extend the browser canvas width to match its height, causing a horizontal scroll bar.

Netscape 4.x does everything but stretch the box to 100 percent of the canvas.