I am looping through an array to display content in div tag. I want 2 div tags in one row. Could someone post code showing how this can be done
sticks464
Joined: 31 Dec 2006
Posts: 2311
Posted: Thu Oct 22, 2009 1:37 pm
I'm not sure of what you want. To put two div's on the same row (I assume you mean side by side), use a div to hold both, float both left and give the second one a rule of display-inline. Now you don't have to do this if you have a widths set and the main div width is large enough to hold both div's. They will flow naturally one beside the other.
I would like to display Div1 and Div2 in one row and Div3 and Div4 in second row and so on. This is a popup window with 800px as width and 600px as height and is scrollable.