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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

sizing 100%

Status
Not open for further replies.

TheConeHead

Programmer
Aug 14, 2002
2,106
US
What is the best way to size 100% vertically?

[conehead]
 
OK I can get the size via:

document.body.clientHeight

How can I take this number and apply it to a cell:

<td height="157">....

[conehead]
 
The best way to size things 100% vertically is to define it. Canvas is html element and it (and all the elements within it) must be 100% high. So,
Code:
html, body {
  height: 100%;
}

#myDiv {
  background: red;
  height: 100%;
}
The div will be 100% high.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top