Click to See Complete Forum and Search --> : Placement of Script Output


charitonca
06-25-2006, 05:31 PM
I am trying to place the output from a weather magnet script on a Web page. I need to center the graphic that is produced, but it keeps going to the left side of the frame.

The script is of this nature:

<SCRIPT src="http://xxx.xxxx.com/xxx/oap/#####?template=ALERH&par=#########&unit=0&key=xxx#x#x"></SCRIPT>

I have tried everything, but can't position it. It is always placed at the end of my HTML in the frame. Is there a way to control where this graphic is positioned?

tabzter
06-25-2006, 07:40 PM
because you are importing this script from anothr site, the script itself may contain positional information which you cannot control.

One solution may be to override the default positions by introducing a parent layer.
Try this:

<div style="margin:auto; text-align:center; width:100%">

<SCRIPT src="http://xxx.xxxx.com/xxx/oap/#####?template=ALERH&par=#########&unit=0&key=xxx#x#x"></SCRIPT>

</div>

charitonca
06-25-2006, 09:45 PM
Thank you very much! Your suggestion worked great.