Click to See Complete Forum and Search --> : Sizing a table to fill the browser client window


EricGen
07-23-2003, 03:14 AM
Hi,

My pages are made with a top table with the left column acting as a navigation bar. It has a different bacxkground colour. How can I resize the table so that it fits exactly in the browser window? For now I add many rows but that means there is a scroll bar to scroll to nothing, which is not very satisfactory.

Thanks for any help

xataku_nakusute
07-23-2003, 05:56 AM
although many would disagree with me, from much existentialities, i can deduce that using a width="100%"/height="100%" property on any table should work....

but im not sure if im answering your question...

.......

EricGen
07-23-2003, 07:54 AM
It did at first, but not since I put a DOCTYPE at the top of the document.

That messed up a few things which I have now fixed but I'm stuck with this table that's sized only to its content. It's fine if the content's long but on some pages where the content's small, it's really bad.

Is it possible to
- find out the height of the browser client window
- set a handler for when it is sizing
- set the table height in that handler?

xataku_nakusute
07-23-2003, 03:36 PM
i myself, never use the doctype tag at the top....which i know is a "bad habit" and all, but i just dont have much use for it

so.....i basically have no clue as what to do.....simply cuz i dont have much experience with doctype