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 9120913
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T05:44:12+00:00 2026-06-17T05:44:12+00:00

Something changed in Twitter Bootstrap between 2.0 and 2.1 that precludes the simple specification

  • 0

Something changed in Twitter Bootstrap between 2.0 and 2.1 that precludes the simple specification of image sizes when using the awesome Isotope image library and requires the user of the alternative techniques of $(window).load or $container.imagesLoaded to draw correctly (http://isotope.metafizzy.co/docs/help.html). The bug seen is that the vertical height of the images specified seems to be ignored and the images are overlapping. Changing to the alternative forms that wait for images to get loaded results in a far worse experience in terms of flickering and paint issues. I ended up going back to Bootstrap 2.0.

I confirmed that issue was introduced with 2.1 of bootstrap. You can find the change history of bootstrap here: https://github.com/twitter/bootstrap/wiki/Changelog

Does anybody know what changed in 2.1 that probably caused this breakage and if there’s any good workaround. As mentioned above, waiting for the images to load is FAR worse than just putting in the image heights and widths, so that is not really a workaround.

  • 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-17T05:44:14+00:00Added an answer on June 17, 2026 at 5:44 am

    I posted the answer here: https://github.com/twitter/bootstrap/issues/6541

    Inlining this in the CSS worked, like this:
    img src=”blah-blah” width=398 height=265 style=”width:398px; height:265px”

    In fact, I also tested Isotope without using the width and height attributes, like this:
    img src=”blah-blah” style=”width:398px; height:265px”

    And that worked fine! Any recommendation if it’s better to only specify the CSS?

    I was able to very easily test this without bootstrap (or bootstrap 2.0) by using this CSS:
    img {
    width: auto;
    height: auto;
    }

    It seems that the width and height in the CSS do override the image properties, and before the images get loaded, the browser does not know how much space to allocate, and then, even after the images load, the spacing is still wrong, at least with Isotope. Inlining the style does workaround the issue. I think I tried using regular styles, but that didn’t seem to work, but I may have had a CSS priority issue. Any way, since the image size is laid out with the image properties, it’s rather natural to put in this tiny bit of inline CSS. I hope we eventually find a better solution, as this will surely affect others when upgrading.

    Or at least this should be documented that one needs to use the inline style for the width and height of the image rather than the properties.

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

Sidebar

Related Questions

Wanted to try something new, using the awesome twitter bootstrap and their Less CSS
I've been working a project using isotope and I must have changed something because
I am using twitter bootstrap and my own CSS to achieve something. What I
The Fullcalendar widget is awesome. I'm using it in a Twitter Bootstrap project, and
I am using Font-Awesome which is iconic font for use with Twitter Bootstrap. Markup
Twitter Bootstrap http://twitter.github.com/bootstrap/javascript.html#dropdown has a dropdown.js library (at http://twitter.github.com/bootstrap/1.4.0/bootstrap-dropdown.js )that will change the dropdown
I like the sizes of all items using twitter bootstrap when (in my browser)
I have a ListView that shows around 300 items. When something is changed and
I have a property inside a class that is getting changed by something. The
I've written a simple Jekyll plugin to pull in my tweets using the twitter

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.