-
-
Notifications
You must be signed in to change notification settings - Fork 983
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
problem with position fixed element in iframe #83
Comments
You're setting the content div to a fixed height of 1000px. So this is the 'min-height' for your page and the fixed element will always be placed at around 500px height. Right? |
In the iframe page, the fixed element css: check in this page: and this page |
Yeah sure, but min-height of your page is always 1000px as long as you define the #content Div to be 1000px high. So if you check the layout in jsfiddle, where the result panel is only let's say 500px height, you'll get scrollbars and the fixed element is nearly out of sight. |
The CSS you have is fixed relative to the position of the iFrame. If you want to do it relative to the position of the parent page, then you need to either put it in the parent page and z-index over the iFrame, or write a bunch of JS to work it all out. |
iPad/iPhone position fixed are problems |
when I use the position fixed element in the iframe,
It is not in the correct position
for this example, I want it centered vertically in the parent page
parent page:
http://jsfiddle.net/bducmsnf/
iframe:
http://jsfiddle.net/ooa2ze0o/1/show/
The text was updated successfully, but these errors were encountered: