Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Table 100% high

Status
Not open for further replies.

destinyml

ISP
Apr 27, 2004
27
DK
Hi

I would like to add a table that takes up 100% of the height of the browser window. I have done this like this:

<table style="height: 100%; width: 780px" border="1" cellpadding="0" cellspacing="0">

That works if I do not include the doctype element, however if I add:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "
the table does not go to the buttom of the browser window.

Any ideas? Thanks
 
Add [tt]height: 100%;[/tt] to your html and body tags as well. 100% needs to have a parent element with a defined height.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top