开发者

Div arrangement problem

all

I am creating my menu list in footer dynamicall开发者_如何学编程y. now in one row max 3 div can be possible then next 4th div will be set under first. My problem is now the above 3 div has different height. while creating the 2nd row its take the 1st row max height.

see the image you will more clear what i want

Div arrangement problem


jQuery Masonry is an option to solve this, though possibly overkill for your reasonably simple situation.

Is the width of that brown box fluid or fixed?


Instead of laying out the divs rowwise lay them columnwise. Have 3 container divs representing columns then place content divs inside these column divs as appropriate.

The table equivalent would be - outer container table having one row and three cells. Each cell would have single column, multi row table.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜