Solved

Tile and Cascade Divs with jquery

Posted on 2009-04-01
3
2,222 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 500 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

The Ultimate Checklist to Optimize Your Website

Websites are getting bigger and complicated by the day. Video, images, custom fonts are all great for showcasing your product/service. But the price to pay in terms of reduced page load times and ultimately, decreased sales, can lead to some difficult decisions about what to cut.

Question has a verified solution.

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

JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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.
The viewer will learn how to dynamically set the form action using jQuery.
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

707 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