Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

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.