?
Solved

Tile and Cascade Divs with jquery

Posted on 2009-04-01
3
Medium Priority
?
2,229 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 11

Accepted Solution

by:
level9wizard earned 1000 total points
ID: 24048776
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
ID: 24049482
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
ID: 24289137
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes how to create custom column layout styles for Bootstrap. The article uses 5 columns to illustrate the concept, but the principle can be extended to any number of columns.
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
In this tutorial viewers will learn how to position overlapping items using z-index in CSS. They will also learn the restrictions on the z-index property.  Create a new HTML document with an internal stylesheet.: Create a div in CSS and name it Red.…
The viewer will learn the benefit of using external CSS files and the relationship between class and ID selectors. Create your external css file by saving it as style.css then set up your style tags: (CODE) Reference the nav tag and set your prop…
Suggested Courses

741 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