Link to home
Start Free TrialLog in
Avatar of jabronicus
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>

Open in new window


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');
        }
}

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of jabronicus
jabronicus

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial