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

  • Home
  • SEARCH
  • 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 9177627
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T17:22:10+00:00 2026-06-17T17:22:10+00:00

TL;DR: See this fiddle – pretty much all I’m looking for is a JavaScript

  • 0

TL;DR: See this fiddle – pretty much all I’m looking for is a JavaScript doohickey that would fix the gaps between floated elements such as these, without the delay when resizing that existing libraries have.

Longer version: So as I understand it, there are two major libraries for creating walls of tightly-knit elements; Masonry and Isotope.

However, apart from the suspiciously similar websites, both these libraries have the same oddity when it comes to resizing the viewport with fluid/responsive elements. Each masonry’d element first resizes individually (creating larger gutters), and then a beat later, gets re-arranged to the new form. See it here or here.

It seems I’m the only one who thinks this is ugly.

How can I achieve the same masonry effect, but with more ‘native’ looking resizing (i.e. one without the delay), considering an element width set in percentages, and gutters?

Here’s the CSS I have now:

#wrapper {
    width: 100%;
    overflow: hidden;
}

#wrapper > div {
    width: 46%;
    margin: 0 2% 15px;
    float: left;
}
  • 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-06-17T17:22:11+00:00Added an answer on June 17, 2026 at 5:22 pm

    http://jsfiddle.net/UTB5C/3/

    the result of masonry selected elements after resizing the window are a bit funny so i have added a resize event on the window to reload when window resized

    $(function () {
    
        $('#wrapper').masonry({
            itemSelector: 'div',
            isResizable: true,
            gutterWidth: 5
        });
        $(window).on("resize", function () {
                $('#wrapper').masonry('reload')
        });
    
    });
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

See this fiddle: JSfiddle The last div that is the with id=3 is staying
So if you look at this fiddle http://jsfiddle.net/r0k3t/z8f2N/1/ you can see that var me
see this fiddle . This upon running gives an error in console. I'm currently
Please see this fiddle I want the scrolling div stop following when left div
Please see this fiddle. In Chrome (version 23) and Safari , if you keep
I see this fiddle sample here I want when to the top appear, an
First: please see this fiddle: http://jsfiddle.net/gamehelp16/77ssr/ So, these images: (source: placekitten.com ) Uses the
See this fiddle: http://jsfiddle.net/uqJHf/ I have set the first column to show up with
Please see this fiddle for my situation. Essentially, I have a floating span which
Please see this fiddle (the result window should be made large). When one of

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.