I am wanting to make sure my pages are staying within the browser window regardless of browser zoom level. In other words, I never want to see a horizontal scroll bar.
This code is seen in the stock template:
Code: Select all
//pass min and max - measured against window width
function P7_MinMaxW(a,b){
var nw="auto",w=document.documentElement.clientWidth;
if(w>=b){nw=b+"px";}if(w<=a){nw=a+"px";}return nw;
Please explain this code to me. Am I correct in assuming this is where I would make the correct settings? Is this where one would set page constraints as a percentage of the available space?
Any explanation would be appreciated.
Thanks.