What is wrong with that? Ive read a couple of posts that suggest that in order for all elements of the inline block to be on the same line with only overflow-x, the parent only needs the following CSS:
div { overflow-x:scroll; overflow-y:hidden; white-space:nowrap; }
This is my CSS, right from my firebug for both the parent and the elements I need on the same line. Elements are wrapped only in vertical overflow. I am embarrassed. Any suggestions?
.elementsRequiredOnSameLine { background: none repeat scroll 0 0 white; display: inline-block; float: left; height: 10em; text-align: center; width: 6em; } .parent{ display: inline-block; margin: 10px auto; min-height: 12em; overflow-x: scroll; padding: 10px; white-space: nowrap; width: 95%; }
source share