Overflow: hidden with a position other than static, doesn't work in chrome and safari, is this new? this is mistake?

you can see here http://jsfiddle.net/TKb6M/1/ overflow is hidden does not work with a fixed relative or absolute position. is it new because I think that I remember using tails and safaris before, and it worked fine.

+4
source share
1 answer

Results are only visible when the child is larger than the parent overflow:hidden element is applied to (or when the position of the child partially falls outside the parent). So in your example you don't see any difference, because the child img and the parent #he both have the same width (70px).

Take a look at this update ( #he width changes to 30px): http://jsfiddle.net/TKb6M/10/

0
source

All Articles