[thelist] Centering in IE6?
Paul Backhouse
paul.backhouse at 2cs.com
Tue Mar 19 11:00:01 CST 2002
Hmmmm.....IE 6 has a slight bug when it comes to rendering stuff in the
center of a browser (apparently - and I have seen instances of this).
I have some Javascript that i found which works nicely - how you cold
implement into a div I'll leave to you:
<script language="JavaScript">
<!--
function launch(url,wid,hei)
{
features = 'fullscreen,width=' + wid + ',height=' + hei;
win = window.open(url, 'CM', features);
if(win.resizeTo) win.resizeTo(wid, hei);
if(win.moveTo)
{
leftPos = (screen.width - wid) / 2;
topPos = (screen.height - hei) / 2;
win.moveTo(leftPos, topPos);
}
if(win.focus) win.focus();
}
//-->
</script>
<body onload="launch('TimeSheet.asp', '360', '160'); return false">
hope you can use it
paul
-----Original Message-----
> IE6 still don't like it. [It *does* take the color specifications -
> so it is reading in the CSS. It's just kinda stuck at the left
> margin.]
More information about the thelist
mailing list