Re: div-float



dorayme wrote:
In article <a5ydncWZoaaI1JPVnZ2dnUVZ_hninZ2d@xxxxxxxxxx>,
Gus Richter <gusrichter@xxxxxxxxxxxx> wrote:

Neredbojias wrote:
On 22 Apr 2008, artev <mailnotspammm@xxxxxxxxxxx> wrote:

if I have 6 divs,
div1 div2 div3 div4 div5 div6

if I use float:left for all, the divs are all near in one row.

how can to have put side by side in two rows;
i.e. first 3 near and other 3 near but below; notice: I not want use other div for group first 3; but want use the
style;


I tested with insertion on div4 the clear:left; div4 ok I have in 2nd row but is all expanse and not have near the
div5 and div6.
howcan resolve?

------------------------------------------------

other: for to have
<div>
div1 div2 div3 </div>

three div near using the float and one external div that contain all, is possible? ask because with float of div1 div2 div3 the external div not work
good
Try this:

<div>
div1 div2 div3 </div>
<div style="clear:both;">
div4 div5 div6 </div>
Try also:

div1 div2 div3
<div style="clear:left;"></div>
div4 div5 div6

Or perhaps more economical still:

div1 div2 div3
div4 div5 div6

and style div4 with clear: left;

Agreed.

--
Gus

.



Relevant Pages

  • Re: div-float
    ... I not want use other div for group first 3; ... I tested with insertion on div4 the clear:left; ... ask because with float of div1 div2 div3 the external div not work ... div5 and div6". ...
    (alt.html)
  • Re: div-float
    ... I not want use other div for group first 3; ... I tested with insertion on div4 the clear:left; ... ask because with float of div1 div2 div3 the external div not work ... Or, put it another way, yes, it should be styled float: ...
    (alt.html)
  • Re: div-float
    ... i.e. first 3 near and other 3 near but below; notice: I not want use other div for group first 3; but want use the ... I tested with insertion on div4 the clear:left; div4 ok I have in 2nd row but is all expanse and not have near the ... three div near using the float and one external div that contain all, ...
    (alt.html)
  • Re: div-float
    ... i.e. first 3 near and other 3 near but below; notice: I not want use other div for group first 3; but want use the ... I tested with insertion on div4 the clear:left; div4 ok I have in 2nd row but is all expanse and not have near the ... three div near using the float and one external div that contain all, ...
    (alt.html)
  • Re: div-float
    ... I not want use other div for group first 3; ... I tested with insertion on div4 the clear:left; ... ask because with float of div1 div2 div3 the external div not work ...
    (alt.html)