[Last Call] Learn about multicloud storage options and how to improve your company's cloud strategy. Register Now

x
?
Solved

Tile and Cascade Divs with jquery

Posted on 2009-04-01
3
Medium Priority
?
2,241 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

Tech or Treat! - Giveaway

Submit an article about your scariest tech experience—and the solution—and you’ll be automatically entered to win one of 4 fantastic tech gadgets.

Question has a verified solution.

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

CSS is a visual language used to classify objects and define rules about how they should be displayed. CSS skills aren’t restricted to developers anymore, there is a big benefit to having a basic understanding of the language, regardless of your occ…
Building a website can seem like a daunting task to the uninitiated but it really only requires knowledge of two basic languages: HTML and CSS.
In this tutorial viewers will learn how to position items using CSS's three positioning types Create a new HTML document with an internal stylesheet.: Create another div in CSS and name it Absolute : Type "position:absolute;" and "top:10px; left:50p…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.
Suggested Courses

650 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