But then the content in one of the div nested inside #container is hidden. Because it inherited the overflow:hidden
But I do not want it to do so. I want the overflow property to be reset for the div as if it never inherited it from #container
So what is the default value for overflow? or is there another way I can not apply overflow:hidden to said nested div?
Thanks in Advance & Kind Regards,
Team 1504
P.S. I wouldn’t want to use the :not css3 pseudo-class because of the lack of support. Meaning, is there another solution besides
As long as it doesn’t matter if it, er, overflows, then visible is fine. In what way did auto mess it up? That should produce a scrollbar if one is deemed necessary.
Yes, but I want it to overflow without a scroll bar if that makes any sense. Well have the nested div overflow and if a scroll-bar is necessary (it would be a vertical one in this case) then it is applied to the body not just the div.
overflow:visible; didn’t work even when I did overflow:visible !important;
Well, we need more context, then, in that case. You’re running out of overflow property values at this rate!
Visible will force it to overflow without a scrollbar (not something that I could ever imagine wanting), but it could still be covered if you have a z-index issue with adjacent content.
Yes, but I want it to overflow without a scroll bar if that makes any sense. Well have the nested div overflow and if a scroll-bar is necessary (it would be a vertical one in this case) then it is applied to the body not just the div.
overflow:visible; didn’t work even when I did overflow:visible !important;
If you apply overlow:hidden to a container then any content that sits inside that container will not be allowed past the boundaries of the container (unless they are positioned elements and the element with overflow:@hidden is not position:relative). You can’t add overflow visible to a child and expect it to have any effect because it is the parent that is hiding the children. There is no inherritance going on, you told the parent to hide any overflow and that’s what it does.
You don’t really want to mess with the overflow property on the body element either as that can soon get very tricky in older browsers and you may end up with scrolls bars on the html and body elements. Just leave the body alone there is no need to set overflow:hidden or auto because it is already set up to work as expected.
I’d need to see your set up to see what you are trying to do and why you think you have to mess with the body element.