Randomishlying Posted November 21, 2012 Share Posted November 21, 2012 If an element is relatively positioned, its child is absolutely positioned (within the parent container), and the child has a child which is also absolutely positioned. Why is it that the child's child continues to be absolutely positioned relative to its parent container, when it's parent isn't relatively positioned? It seems to go on an on like this.I'm probably just thinking about this the wrong way, but I find it to be confusing. If someone could explain this to me, I would be greatful. Link to comment Share on other sites More sharing options...
Ingolme Posted November 21, 2012 Share Posted November 21, 2012 Absolute positioning will be relative to the closest ancestor that has positioning different than "static" Link to comment Share on other sites More sharing options...
Randomishlying Posted November 21, 2012 Author Share Posted November 21, 2012 I just had a "d'oh!" moment. Thanks for putting up with my ignorance. Thanks to you, my brain has finally made the connection. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now