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

Container needs to be position: static #18

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Container needs to be position: static #18

wants to merge 1 commit into from

Conversation

aentan
Copy link

@aentan aentan commented Aug 27, 2013

See what happens if container happens to be position: relativecor anything other than static: http://jsfiddle.net/BdXPL/1/

This could happen if the container has other styles including non-static position. By having the JS overwrite the position, the user can at least know he needs to work around the position and not have to spend half an hour like me trying to see what's fucking up the offset.

See what happens if container happens to be position: relativecor anything other than static: http://jsfiddle.net/BdXPL/1/

This could happen if the container has other styles including non-static position. By having the JS overwrite the position, the user can at least know he needs to work around the position and not have to spend half an hour like me trying to see what's fucking up the offset.
@arathael
Copy link

Try giving the container a width.

@aentan
Copy link
Author

aentan commented Aug 28, 2013

Doesn't have an effect. Fork my fiddle and try.

@arathael
Copy link

Oh, you meant the elements add the Y offset of the container to their own.

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