javascript - How do I lay my DIVs in a unique grid? -


currently, divs laid out this. it's basic float:left. easy

http://imgur.com/fsits.jpg

but if want turn of square divs 1 twice wide/long? randomly selected, of course. how generate html/javascript , this?

http://imgur.com/xsylv.jpg

what's math behind this? float:left still work?

can please give example of how can achieved easily?

jquery masonry works this: http://desandro.com/resources/jquery-masonry/ (demo)


Comments

Popular posts from this blog

asp.net - repeatedly call AddImageUrl(url) to assemble pdf document -

java - Android recognize cell phone with keyboard or not? -

iphone - How would you achieve a LED Scrolling effect? -