jabronicus
asked on
Mootools: setStyle height and width - IE8 not working
I am using Mootools to set height and width on divs. Functionality is fine in Chrome and Firefox, IE8 is not. I know IE8 has issues with height in general, but I am not even writing height and width in IE. Any help much appreciated.
<div container height="" width="">
</div>
window.addEvent('domready',function() {
size = window.getSize();
width = size.x;
height= size.y
container = $('container');
//Height and width of browser window
function browserSize() {
//Always set container
container.setStyle('width',width + 'px');
container.setStyle('height',height -58 + 'px');
}
}
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.