fergusonkw
06-30-2009, 04:38 PM
1) Script Title: Stay On Top Content Script
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/stayontop.htm
3) Describe problem: I cannot seem to get my div element to center itself on the page. I'm aware that there's 4 options to position the element based on the 4 corners of the window. However I'm hoping to be able to horizontally center it on the page and am wondering if there's a way to do this.
I've tried using CSS position elements within the DIV tag when it's created, but the javascript positioning functions seem to override it.
Please help
2) Script URL (on DD): http://www.dynamicdrive.com/dynamicindex17/stayontop.htm
3) Describe problem: I cannot seem to get my div element to center itself on the page. I'm aware that there's 4 options to position the element based on the 4 corners of the window. However I'm hoping to be able to horizontally center it on the page and am wondering if there's a way to do this.
I've tried using CSS position elements within the DIV tag when it's created, but the javascript positioning functions seem to override it.
Please help