I'm putting together a responsive layout ...
My "menucontainer" is fixed ...
So its width does not match the size of the site's interface ...
Because of this, when the zoom increases, it becomes more fluid.
So if I could make every window.resize
the size of the menucontainer equal to that of the layout interface, I would force a flow.
So I did so (does not work):
function resizee(){
var box = document.querySelector('.boxinterface');
var hcont = document.querySelector('.headercontainer');
box.style.maxWidth = "1100px";
setInterval(function(){
hcont.style.width = box.style.width;
},3000);
}
window.addEventListener('resize',resizee,false);
resize();
I even managed to solve this problem with media queries
, but I found it not ideal because you have to define several breakpoints
... even more because this is a mere matter of fluency.