I have come across a challenge with the following code snippet:
var winheight = $(window).height();
var headerHt = (0.11 * winheight);
$(".header").height(headerHt)
The purpose of this code is to dynamically adjust the size of .header
and other elements during window resize events and upon document ready. Although it works smoothly in Chrome, I am facing an issue in Internet Explorer where the new height values are not being applied to each div. Could anyone point out any mistakes in my approach? What would be the most effective strategy to handle dynamic resizing for various window sizes?
Any insights or suggestions on this matter would be greatly appreciated!