Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

jQuery Masonry fixed / prepositioned element

i have a navigation element inside a jquery masonry layout and i would like to fix it to a specific position lets say right top. is it possible to do that so every other element gets positioned around it?

something like preposition the navigation..

this is my code: http://jsfiddle.net/ftqTr/

right now i'm trying to position an empty element where the navigation is. but the size of the div boxes are random.. so a fixed position for the fake navigation or another solution would be awesome!

thanks in advance

like image 788
Oliver Avatar asked Aug 24 '11 15:08

Oliver


1 Answers

This is a feature that has been often requested. I call it "corner stamp." I've created a modification that you can use:

https://github.com/desandro/masonry/issues/105 http://jsfiddle.net/desandro/M8EYn/embedded/result,js,css/


update Mar 25, 2016

This feature has been implemented as the stamp option in Masonry v3

like image 63
desandro Avatar answered Oct 06 '22 00:10

desandro