Welcome to the Treehouse Community

Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.

Start your free trial

CSS

Draggable DIVs that behave like dragging an iOS app

Hello, Does anyone know of a good tutorial that shows how to set a grid of DIVs up, and then be able to drag them in any order that you'd like... similar to re-arranging an app's position on an iOS device?

Thanks!

2 Answers

James Barnett
James Barnett
39,199 Points

You are going to need JavaScript for that. Something like the Gridly JQuery plugin.

Awesome... thanks so much. I was looking into jQuery UI Sortable ( http://jqueryui.com/sortable/#display-grid ), but Gridly is much better!

James Barnett
James Barnett
39,199 Points

JQuery UI is meant to help you build your plugins, if for instance you want certain code to fire upon drag & drop.