Answered by:
Has anyone done a masonry layout in HTML/JavaScript

Question
-
Has anyone been able to build a masonry layout in HTML/JavaScript? I was looking at using jQuery Masonry, but it seems to only do a vertical scroll and I'd like to be able to do a horizontal scroll.
Anyone have any tips here?
thanks,
Todd
Tuesday, April 24, 2012 6:09 AM
Answers
-
Got ya!
You can use jQuery if you want. The Store actually uses a listview and a custom renderer so you could do something similar as well.
Here is a brief discussion of custom rendering with listview: http://msdn.microsoft.com/en-us/library/windows/apps/Hh781224.aspx (see: Custom render function)
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, April 24, 2012 4:05 PM
- Marked as answer by SpatacoliMVP Tuesday, April 24, 2012 4:19 PM
Tuesday, April 24, 2012 4:05 PMModerator
All replies
-
Hi Todd,
I don't know what that is! Can you elaborate?
-Jeff
Jeff Sanders (MSFT)
Tuesday, April 24, 2012 12:47 PMModerator -
It looks like the Windows App Store. Here's the masonry jQuery script:
Just trying to figure out how to do it.
Tuesday, April 24, 2012 3:50 PM -
Got ya!
You can use jQuery if you want. The Store actually uses a listview and a custom renderer so you could do something similar as well.
Here is a brief discussion of custom rendering with listview: http://msdn.microsoft.com/en-us/library/windows/apps/Hh781224.aspx (see: Custom render function)
-Jeff
Jeff Sanders (MSFT)
- Proposed as answer by Jeff SandersMicrosoft employee, Moderator Tuesday, April 24, 2012 4:05 PM
- Marked as answer by SpatacoliMVP Tuesday, April 24, 2012 4:19 PM
Tuesday, April 24, 2012 4:05 PMModerator -
Thanks, I'll take a look at the custom render function discussed.Tuesday, April 24, 2012 4:19 PM