We're looking for a user researcher to understand the needs of developers and designers. Is this you or someone you know? Check out the post: https://mzl.la/2IGzdXS

-moz-stack-sizing Redirect 1

« CSS « CSS Reference « Mozilla Extensions


-moz-stack-sizing is an extended CSS property. Normally, a stack will change its size so that all of its child elements are completely visible. For example, moving a child of the stack far to the right will widen the stack so the child remains visible.

If you wish to prevent the stack from resizing automatically to accommodate its children, you can set -moz-stack-sizing to ignore on the child element. The property is set not on the stack itself, but on the stack's children. This lets you ignore certain children, but not others.


-moz-stack-sizing: ignore | stretch-to-fit


The child will influence the stack's size.
The stack won't consider this child when calculating the its size.


View Live Examples (not available, please check later)

	-moz-stack-sizing: ignore;


In previous versions of Gecko it was possible to work around the problem by setting very large negative bottom and right margins on the stack element and equally large positive bottom and right margins on the children whose size you didn't want to ignore. (The problem does not affect children moved above or to the left of the stack.)


bug 346189

Document Tags and Contributors

Last updated by: Sheppy,