Hi All,
I'm trying to center a StyleSheet like below :
<div id="CenterThis" style="position:absolute; top:40px; left:70px;">This
should be centered</div>
With this code :
<script language="JavaScript" type="text/javascript">
var ScreenW = document.documentElement.offsetWidth;
document.write(ScreenW);
</script>
I can get the screenwidth, but how would I combine this with the div code so
that it will be centered??
Any suggestions/help is welcome!
Thanks!
Regards,
Steven.