What CSS should I use to create a series of horizontal, non-wrapping blocks?
Posted
by JOhnC
on Stack Overflow
See other posts from Stack Overflow
or by JOhnC
Published on 2010-06-01T09:21:28Z
Indexed on
2010/06/01
9:23 UTC
Read the original article
Hit count: 252
css
|horizontal-scrolling
I have a set of dynamically generated content - anywhere between 1 and about 25 blocks (each of which I want to be about 250px wide.
Clearly, this can run off-screen, but that's fine since my design allows for horizontal scrolling (using jQuery - I don't want the browser to do it with its own scroll bars).
So what CSS - cross-browser - is the best approach? Floats seem to wrap unreliably, and the dynamic nature of the content which changes frequently through ajax calls - means that recalculating the container width is not very practical.
Other CSS-based option?
© Stack Overflow or respective owner