Solved

Tile and Cascade Divs with jquery

Posted on 2009-04-01
3
2,182 Views
Last Modified: 2012-05-06
I am looking for a way to tile and cascade divs (like windows), using jquery. A Google search brings up nothing resembling any div re-arranging functions. Jquery would be first prize, but I'd be happy if anyone can show me any example of it being done in any javascript, or something close to it. I would think it should be easy. I would approach it by getting the browser width and height, counting the divs and resizing them. Maybe there are examples of this, and I am perhaps just using the wrong terminology.
0
Comment
Question by:andrejonker
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
level9wizard earned 500 total points
Comment Utility
Take a look here: http://www.quirksmode.org/js/dragdrop.html
Is that what you're looking for? The example is there too, click and move around the little boxes on the left.
0
 

Author Comment

by:andrejonker
Comment Utility
Actually, I have my boxes resizing and floating and dynamically multiplying and deleting, and hiding and minimizing. Haven't maximized them yet... but I think it should be easy. All I am getting stuck on is tiling and cascading. In other words if I have 6 divs (my theme is colored boxes) of different sizes, wherever on the screen, one button must resize them equally and put them side by side in 2 rows, 3 boxes above and 3 boxes below.
0
 

Author Comment

by:andrejonker
Comment Utility
OK, any tile code. I think I figured out a plan for cascade. Gimme some tiling logic and I'll share my cascade plan.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

I found this questions asking how to do this in many different forums, so I will describe here how to implement a solution using PHP and AJAX. The logical flow for the problem should be: Write an event handler for the first drop down box to get …
Browsers only know CSS so your awesome SASS code needs to be translated into normal CSS. Here I'll try to explain what you should aim for in order to take full advantage of SASS.
In this tutorial viewers will learn how to style transparent/translucent elements using alpha transparency in CSS Start with a normal styled element, such as a div.: Define its "background-color" property as "rgba (255, 255, 255, .5): The numbers in…
In this tutorial viewers will learn how to style different bullet points for unordered lists in CSS. Begin with a normal unordered list; the default bullet point is a solid circle: In the CSS, create a defined class of unordered list by typing "ul.S…

744 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

14 Experts available now in Live!

Get 1:1 Help Now