initial setup of framework code
[cacert-mgr.git] / manager / public / js / center.js
1 function setCSS() {
2 var x = window.innerWidth;
3
4 x = x - 18; // maybe scroll bar
5 document.getElementById('center').style.width = x + "px";
6 document.getElementById('center').style.marginLeft = "-" + x/2 + "px";
7 }
8
9 window.onload = setCSS;
10 window.onresize = setCSS;