Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Absolute Positioning #17

Open
madhankumar028 opened this issue Jan 3, 2019 · 0 comments
Open

Absolute Positioning #17

madhankumar028 opened this issue Jan 3, 2019 · 0 comments

Comments

@madhankumar028
Copy link

Absolute position offset values will be relative to the next parent element with relative (or absolute) positioning. If there is no such parent, it will default all the way back up to the html element itself meaning it will be placed relatively to the page itself.

Above is your explanation of how absolute position works. But when I was playing with the absolute position, I found that absolute position offset values will be relative to the next parent element which has a defined position except default (static). If there is no such parent, it will default all the way back up to the html element itself meaning it will be placed relatively to the page itself.

Here is my code-pen link @vasanthk for your reference.

Can you please check this? and feel free to correct me if I am wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant