For my android project, I have a requirement to display a view (WebView) that dynamically loads content. The content will consist of <div class="content-item">
tags that are added by JavaScript
to
<div class="content-holder">
after the page has loaded.
The layout design specifications are as follows:
- List item
- The content items need to be organized in fixed-width columns. Each content item may have a different height.
- The height of any column cannot exceed the screen height. If a column is filled, additional content should move to the next column (which will be created if needed). There should not be any empty columns, and a column must not break inside a content item.
- The page should allow horizontal scrolling (multiple columns of fixed width), but not vertical scrolling (the height must fit within the page).
Any suggestions on how to implement this using CSS and JavaScript?