Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7070855
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T05:37:00+00:00 2026-05-28T05:37:00+00:00

Please refer to http://lrin.tk/float_problem.htm . Here’s how my page looks like: +———————–+ +—————————+ +————–+

  • 0

Please refer to http://lrin.tk/float_problem.htm.

Here’s how my page looks like:

   +-----------------------+ +---------------------------+ +--------------+ 
   |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________| |::::::::::::::| 
   |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________| |::::::::::::::| 
   |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________| |::::::::::::::| 
   |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________| |::::::::::::::| 
   |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________| |::::::::::::::| 
   +-----------------------+ |___________________________| +--------------+ 
                             |___________________________|                  
                             |___________________________|                  
                             |___________________________|                  
              [2]            |___________________________|       [1]         
                             |___________________________|                  
                             |___________________________|                  
                             +---------------------------+                  
       +--------------+ +------------+ +----------+ +---------------------+ 
       |**************| |````````````| |==========| |"""""""""""""""""""""| 
       |**************| |````````````| |==========| |"""""""""""""""""""""| 
    [3]|**************| |````````````| |==========| |"""""""""""""""""""""| 
       |**************| |````````````| |==========| |"""""""""""""""""""""| 
       |**************| |````````````| |==========| |"""""""""""""""""""""| 
       +--------------+ +------------+ +----------+ +---------------------+ 
                                              +---------------------------+ 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                              +---------------------------+ 
  • All divs’ height are fixed to a certain value. In the HTML file, 200px.

  • Actually, the ___________-striped div is fixed(not CSS-ually position:fixed) on the upper-right side.

When the window is re-sized (with a threshold of 20px), a reArrange function is called.
Now the code just simply shuffle the divs, so the inflexible browser just leaves area #1 and area #2 empty, not to mention a little slice of area #3.

However the divs are arranged, I would like it to fit the most areas of a line.
Which means,a new line is started only when the current line has no space to hold any (actually “the most narrow one”) of the un-ordered divs.

So in the example, the ideal result should be:

 +--------------+ +--------------+ +---------------------------+ +------------+ 
 |::::::::::::::| |**************| |___________________________| |````````````| 
 |::::::::::::::| |**************| |___________________________| |````````````| 
 |::::::::::::::| |**************| |___________________________| |````````````| 
 |::::::::::::::| |**************| |___________________________| |````````````| 
 |::::::::::::::| |**************| |___________________________| |````````````| 
 +--------------+ +--------------+ |___________________________| +------------+ 
         +-----------------------+ |___________________________|   +----------+ 
         |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________|   |==========| 
         |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________|   |==========| 
         |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________|   |==========| 
         |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________|   |==========| 
         |]]]]]]]]]]]]]]]]]]]]]]]| |___________________________|   |==========| 
         +-----------------------+ +---------------------------+   +----------+ 
                          +---------------------+ +---------------------------+ 
                          |"""""""""""""""""""""| |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                          |"""""""""""""""""""""| |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                          |"""""""""""""""""""""| |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                          |"""""""""""""""""""""| |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                          |"""""""""""""""""""""| |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                          +---------------------+ |{{{{{{{{{{{{{{{{{{{{{{{{{{{| 
                                                  +---------------------------+ 

To me, it looks like a few “dynamic programming” or “recurrence” would do the trick. However, I am only a high school student, no expert in programming.

Is this ever possible?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T05:37:00+00:00Added an answer on May 28, 2026 at 5:37 am

    I’m not sure if you can make it more lightweight or customize it but Isotope has a lot of options.

    JQuery Isotope – http://isotope.metafizzy.co/

    Also be sure to read the help which could help debug any problem you might run into – http://isotope.metafizzy.co/docs/help.html

    You can also read more about the plugin at Github – https://github.com/desandro/isotope – from where you can also download the minified version of the code.

    There is another plugin which is incorporated into one of the layout mdoes used in Isotope. JQuery Masonry – http://masonry.desandro.com/. Masonry allows you to plug empty spaces in your layouts by arranging and aligning floated elements vertically rather than horizontally.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Please refer to this page for reference: http://loadedgranola.valitics.com/_product_83484/blackberry_lime I have a jQuery script that
Please refer to http://www.contempo.org.mo/Online%20magazine/ISSUE21/index.htm Is there any open source or other tools can accomplish
Please refer to my question asked at tek-tips.com: http://tek-tips.com/viewthread.cfm?qid=1663735&page=1 As I mentioned in a
Please refer to the topic http://www.codeproject.com/KB/viewstate/SaveViewState.aspx . The topic demonstrates how you can save
Please refer my previous post here . I did changes accordingly but getting error.
Please refer to http://jsfiddle.net/UEePE/1025/ for the x-axis, when I don't want to skip any
Please refer to http://jsfiddle.net/4kSpz/ Each li is shown inline, but for some reason the
Please refer to http://m.xn--e-nsker-r1a.dk/ to see the problem in real life. Can anyone tell
http://www.asp.net/data-access/tutorials/adding-a-gridview-column-of-radio-buttons-cs Please refer the above link. How to select the RadioButton programatically?
Please refer to the video at http://www.youtube.com/watch?v=_DyzwZJaDfM The brown body is controlled with mouse

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.