alright, if i have a <div> (we will call this one 'child') that is located inside another <div> (we will call this one 'parent') and have child's position set to absolute, and is located 10px from the top and 10 px from the left, will the 10 and 10 be from the top of the browser window? or will it be 10 and 10 from parent's location? the reason i ask is because i have a layout with several images positioned absolutely, but i need the whole "layout" image to be placed in the middle of the page...
here is some sample code:
here is some sample code:
Code:
<div id="parent" style="margin-right:auto;margin-left:auto;">
<div id="child" style="position:absolute; top:10px; left:10px;">
<p>text goes here</p>
</div>
</div>