Click to See Complete Forum and Search --> : Relative vs. Absolute


GregHart
01-02-2004, 04:34 AM
I have code which will generate for me a tree for navigation, and it is simple and all JavaScript, and allows me to execute any JavaScript function instead of just opening URLs (I like that part about it). The only problem is that it renders everything relative, so that it is positioned on the page in a relative position, hence the far left corner. I can place <CENTER></CENTER> tags around a block within the code, and this will center the whole page, but this is not what I need.
The script executes on the BODY tag with onLoad.
The way I see it, there would be 2 possible solutions:
1) Is there a way to embed a page onto another page, and position the page absolute. In other words, can I have page "A", and embed on it Page "B" positioned absolute at 200 top and 100 left?
2) Have the script execute within a <DIV> that is positioned absolutely???

PeOfEo
01-02-2004, 11:46 AM
Just use css
page a
<div style="top:200px; left:300px; position:absolute;">
<!-- #include="pageb" -->
</div>

GregHart
01-02-2004, 08:23 PM
Actually, I had already tried that, and for the particular code, it didn't work. However, I have found a fix, by applying the value of the entire return to a dive that I locate within the document.
Thank you for your feedback.
:> )