Msg#: 4621171 posted 10:16 pm on Nov 4, 2013 (gmt 0)
I have a centered div on my webpage with overflow set to 'hidden' that I use as a window or frame for my content. Inside, I have a facebook 'send' button that, when clicked, opens a flyout dialog box for the user to enter a message to send with the URL. The problem is that the flyout gets clipped by the hidden overflow of the containing box.
I want to put the facebook button outside the container div in my markup to avoid the hidden overflow. But I also need to make sure that it's absolutely positioned to appear in the frame. What's the easiest way to do this?
CSS positioning for the content frame is (note the div below is centered on the page, but don't rely on that as it's not always the case):
Msg#: 4621171 posted 10:23 pm on Nov 4, 2013 (gmt 0)
Having a wrapper that's "gained position" (through position: relative, absolute or fixed) is typically a thing that backfires down the road when trying to break out of it, or when trying to find the original edges of the viewport.
Personally: I think your best choice is to go with the flow and not let the wrapper gain position.