<div id="parent" style="overflow:hidden; position:relative;">
<div id="child" style="position:absolute;">
</div>
</div>
I need to show child element which is bigger than it’s parent element, but without removing overflow:hidden; is this possible?
parent element has position:relative;
child element gets stripped as soon as it’s out of it’s parents borders.
(elements have additional css defined I just put style attributes for clearness)
It’s completely impossible to do what you want with both
overflow: hiddenandposition: relativeon the parentdiv.. instead you can introduce an extra childdivand moveoverflow: hiddento that.See: http://jsfiddle.net/thirtydot/TFTnU/
HTML:
CSS: