In my mind the above example should look like a grey box with #x not going past the edge and #y poking out the bottom.
But it’s not like that – apparently setting overflow-x: hidden; causes overflow-y: scroll | auto;.
Is there any way around this?
I need to allow certain elements to escape the bounding box without setting overflow: visible on #box.
#ycan’t break out of its bounding box without being taken out of the flow of the document. Does addingposition: absolute;to#ygive the effect you’re after?Update
Restructured HTML example, including a containing box to allow everything to be easily positioned together. Try it out here: http://jsfiddle.net/GfNbp