I need to build a HTML/CSS layout with the following layout
|Static Div|Content Div0|Content Div1|...|Content DivN|Static Div|
a scaled down version of my code is like follows:
<div id="container">
<div id="static_div_1"></div>
<div id="content">
<div id="item1"></div>
<div id="item2"></div>
....
<div id="itemN"></div>
</div>
<div id="static_div_2"></div>
</div>
Requirements:
- All DIVs need to be stacked next to each other.
- I will need to add DIV's in the content DIV dynamically using javascript
- The static DIV's need to maintain their position at the beginning and end of the content.
- Content DIV should scroll horizontaly
I am struggling with the following issues:
- After a point the content div starts wrapping the inserted DIV and another row of DIVs start to be rendered.
Edit: Its not something tabular in nature like plain data. Assume each div is like a form in itself. Something looking like a W2. I just need scrolling in the content DIV. To make the matters worse I am not really a GUI guy.. :(
Any help will be greatly appreciated.