Home › Forums › CSS › Position image absolute right with no scroll bar › Re: Position image absolute right with no scroll bar
November 28, 2011 at 3:30 am
#91414
pim
Member
I just came about this page looking for the same thing, but I found the answer on StackOverflow: you have to set overflow-x: hidden on the enclosing element that stretches out to infinity. Putting it on the body is a bad idea if you don’t specify a width on the body: as you noticed, you will never see scrollbars appear and someone with a small screen (mobile) will not able to scroll your page. So put it on another element and let the scrollbars appear for parts that are of your page width.
So it’s definitely possible, I just see it working here in Webkit.