Hi All,
I'm trying to center a StyleSheet like below :
<div id="CenterThis " style="position :absolute; top:40px; left:70px;">Thi s
should be centered</div>
With this code :
<script language="JavaS cript" type="text/javascript">
var ScreenW = document.docume ntElement.offse tWidth;
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.
I'm trying to center a StyleSheet like below :
<div id="CenterThis " style="position :absolute; top:40px; left:70px;">Thi s
should be centered</div>
With this code :
<script language="JavaS cript" type="text/javascript">
var ScreenW = document.docume ntElement.offse tWidth;
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.
Comment