RE: js: change element height on window resize - mozilla

by J_A_B(at)t-online.de (Jens Brueckmann)

 Date:  Thu, 16 Oct 2003 11:47:31 +0200
 To:  "collette(at)mlwebworks.com" <collette(at)mlwebworks.com>
 Cc:  "hwg-techniques(at)hwg.org" <hwg-techniques(at)hwg.org>
  todo: View Thread, Original
Hi Colette,

for your script to work with Mozilla you have to add a unit, e.g. px, to 
your new div and table size:

document.getElementById('div1').style.height = YY + 'px';
document.getElementById('table1').style.height = YYY + 'px';

With YY and YYY being numbers this should work fine in IE, Mozilla and 
Opera.

Yours,

jens

HWG hwg-techniques mailing list archives, maintained by Webmasters @ IWA