All answers to questions that do not satisfy me. They are, in my opinion, all hacks and complicated in a complex layout.
So here is a simple solution:
Once a parent has a specific overflow, there is no way to allow its children to override this.
If a child needs to redefine parental overflow, then the child may have a different overflow than other children.
So, define an overflow for each child instead , declaring it in the parent :
<div class="panel"> <div class="outer"> <div class="inner" style="background-color: red;"> <div> title </div> <div> some content </div> </div> </div> </div> .outer { position: relative; overflow: hidden; } .outer:hover { overflow: visible; } .inner:hover { position: absolute; }
Here is the fiddle:
http://jsfiddle.net/ryojeg1b/1/
dylanmensaert Apr 02 '15 at 8:21 2015-04-02 08:21
source share