• Some users have recently had their accounts hijacked. It seems that the now defunct EVGA forums might have compromised your password there and seems many are using the same PW here. We would suggest you UPDATE YOUR PASSWORD and TURN ON 2FA for your account here to further secure it. None of the compromised accounts had 2FA turned on.
    Once you have enabled 2FA, your account will be updated soon to show a badge, letting other members know that you use 2FA to protect your account. This should be beneficial for everyone that uses FSFT.

absolute position question

ritterb

n00b
Joined
Aug 17, 2004
Messages
31
This should be easy, I don't know what I'm doing wrong.

If you use absolute positioning the layer should be positioned based on the layer it is contained in correct?

Why is it that when I do this it doesn't get positioned 50px to the left of the top layer?

----------------------------------------------html------
<div id="top">
<div id="middle">
TEST TEST TEST
</div>
</div>
--------------------------------------------------CSS---
#top
{
height: 800px;
width: 800px;
margin: auto;
padding: 0px;

border: 1px solid #000;
}

#middle
{
border: 1px solid #000;
position: absolute;

width: 200px;
height: 200px;

left: 50px;
}

thanks
 
Back
Top