开发者

position overlay div in css/js

开发者 https://www.devze.com 2023-02-10 03:22 出处:网络
good people - a js & css Q: I have here a timeline, with an overlay. The positioning of the information-box that开发者_C百科 pops up is my problem.

good people - a js & css Q: I have here a timeline, with an overlay. The positioning of the information-box that开发者_C百科 pops up is my problem. http://dev.favouritesystems.com/appslist/ it has position absolute, and I wonder how I can get it relative to content not screen? geddit? any hints appreciated.


Set the outer wrapper to relative, and keep the information-box as absolute. That way it will be absolute to the wrapper and not the body.


you need to add position:relative for your #wrapper then the popup will be positioned absolute according its parent

0

精彩评论

暂无评论...
验证码 换一张
取 消