faqts : Computers : Programming : Languages : JavaScript : Tables

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 12 people (58%) answered Yes
Recently 4 of 9 people (44%) answered Yes

Entry

How can I set the height attribute according to f.i. screen.height (f.i. height=screen.height-13)?

Nov 2nd, 2004 02:16
Dragoon Lance 2, Bart Hoeksel,


a way to change a tables hight is to do it through style.
<table border=5 id=t1>
</table>
<script>
document.getElementById("t1").style.height=(screen.height-20);
document.getElementById("t1").style.width=(screen.width-20);
</script>