html - How can I create a facebook-style timeline, but with responsive design in 3 different styles? -


how can create facebook-style timeline, responsive design in 3 different styles?

what expected be

code:

<div class="timeline">     <div class="item item-1">         blablabla....     </div>     <div class="item item-2">         blablabla....     </div>     <div class="item item-3">         blablabla....     </div>     <div class="item item-4">         blablabla....     </div>     <div class="item item-5">         blablabla....     </div>     <div class="item item-6">         blablabla....     </div>     <div class="item item-1">         blablabla....     </div>     <div class="item item-2">         blablabla....     </div>     <!-- goes on , on... --> </div> 

desktop (min-width:980px)

3 boxes in row line according numbers. .item-1 , .item-4 go first row, .item-2 , .item-5 go second row, , on.

tablet (min-width:768px)

2 boxes in row. .item-1 .item-3 , .item-5 go first row, .item-2 .item-4 , .item-6 go second row.

phone (max-width:767px)

simply line them on single row.

additional info

this style should fit height of content. this: diagram or this accepted not require boxes correct column, long placed evenly , looks in correct order.

sorry poor english, i'm chinese. fell free write anything. can read them.

jquery masonry different width of box in different displays do.

jquery masonry

numbering of items not required.


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

javascript - jQuery .height() return 0 when visible but non-0 when hidden -