ThomasJSmart
Programmer
- Sep 16, 2002
- 634
Im looking for a better way to do this:
<div style="width:800px">
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
</div>
the effect is something like this:
[1] [2]
[3] [4]
[5] [6]
when all divs are the same height it looks fine, 2 columns of seperate div windows. however the contents of each window is dynamic (as is the ammount of windows) and when the contents of the windows starts to differ the spacing goes all awry.
something like this for example:
[1] |2|<- double height window
| |
[3] [4]
[5] [6]
how can i keep the spacing nice?
so it would be more like this:
[1] |2|<- double height window
[3] | |
[4] [5]
[6]
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!
<div style="width:800px">
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
<div style="width:390px; float:left; margin-right:10px">content dynamic length</div>
<div style="width:390px; float:left">content dynamic length</div>
</div>
the effect is something like this:
[1] [2]
[3] [4]
[5] [6]
when all divs are the same height it looks fine, 2 columns of seperate div windows. however the contents of each window is dynamic (as is the ammount of windows) and when the contents of the windows starts to differ the spacing goes all awry.
something like this for example:
[1] |2|<- double height window
| |
[3] [4]
[5] [6]
how can i keep the spacing nice?
so it would be more like this:
[1] |2|<- double height window
[3] | |
[4] [5]
[6]
I learned a bit yesterday, today i learned a lot, imagine what i'll learn tomorrow!