I'm working on this page and I'm trying to get the overflow to allow for horizontal scrolls. I've tried setting the body to hidden and the class "real body" to auto. This doesn't seem to work.
3 Answers
you need to wrap your long content div with a position: relative; overflow: auto div.
which i something like this:
.wrapper {
position: relative;
overflow: auto;
}
.content {
position: absolute;
width: 30000px;
}
for a better example, please check http://jsfiddle.net/wXqPv/
3 Comments
Chris - Jr
Plus 1. The reason this works is because of the definite width.
LordDraagon
so setting width to auto should work when the horizontal content is added?
Aluminate
Does this still work now? the demo doesn't work for me