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

Answered Q45 #2010

Merged
merged 2 commits into from
Aug 2, 2021
Merged

Answered Q45 #2010

merged 2 commits into from
Aug 2, 2021

Conversation

AbhiBiju
Copy link
Contributor

Source: W3Schools

position: absolute;
An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).

However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling.

Screen Shot 2021-07-31 at 12 58 04 PM

AbhiBiju and others added 2 commits July 31, 2021 12:56
```
position: absolute;
An element with position: absolute; is positioned relative to the nearest positioned ancestor (instead of positioned relative to the viewport, like fixed).

However; if an absolute positioned element has no positioned ancestors, it uses the document body, and moves along with page scrolling.
```
Source: https://www.w3schools.com/css/css_positioning.asp
Copy link
Owner

@Ebazhanov Ebazhanov left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks a lot @AbhiBiju, lovely pull request ❤️! Approved and merged 👈

@Ebazhanov Ebazhanov merged commit 6185c89 into Ebazhanov:master Aug 2, 2021
@Ebazhanov
Copy link
Owner

@all-contributors please add @AbhiBiju for design, code

@allcontributors
Copy link
Contributor

@Ebazhanov

I've put up a pull request to add @AbhiBiju! 🎉

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

Successfully merging this pull request may close these issues.

2 participants