npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

bootstrap-3-grid-columns-clearing

v1.0.5

Published

Bootstrap 3 grid columns clearing

Readme

#Bootstrap 3 Grid Columns Clearing

Install with yarn

$ yarn add bootstrap-3-grid-columns-clearing

Install with npm

$ npm install bootstrap-3-grid-columns-clearing

By adding the js/ie-row-fix.js file and either the css/multi-columns-row.css or compiling the less/multi-columns-row.less file with Bootstrap 3 you can add support for clearing columns in a row.

#Why?

Let's say you are iterating over a big loop of items and want them all to be in a nice grid. And, let's say that on desktops you want 6 columns col-lg-2 and on tablets you want 4 columns col-sm-3 and on phones you want 2 columns col-xs-6. This can't be accomplished using multiple rows. You need to place all of the elements in 1 row. When you do this and the elements in the grid are not all the same height, the stacking goes to hell. This fix makes everything work by adding a clear:left to the first item in each row based on the current min-width and the grid you are using.

This works for any grid where all columns are the same for the particular grid size and add up to 12.

col-xs-1 (phone 12 columns)
col-xs-2 (phone 6 columns) 
col-xs-3 (phone 4 columns)
col-xs-4 (phone 3 columns)
col-xs-6 (phone 2 columns)

col-sm-1 (tablet 12 columns)
col-sm-2 (tablet 6 columns)
col-sm-3 (tablet 4 columns)
col-sm-4 (tablet 3 columns)
col-sm-6 (tablet 2 columns)

col-md-1 (desktop 12 columns)
col-md-2 (desktop 6 columns)
col-md-3 (desktop 4 columns)
col-md-4 (desktop 3 columns)
col-md-6 (desktop 2 columns)

col-lg-1 (large desktop 12 columns)
col-lg-2 (large desktop 6 columns)
col-lg-3 (large desktop 4 columns)
col-lg-4 (large desktop 3 columns)
col-lg-6 (large desktop 2 columns)

See the example.html page for sample markup and working demo.

Quick note to make this work correctly you need to use all grid definitions from the starting column size. Example:

	<div class="row multi-columns-row">
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-xs-6 col-sm-4 col-md-3 col-lg-3">...</div>
	</div>
	
	<div class="row multi-columns-row">
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
		<div class="col-sm-4 col-md-3 col-lg-3">...</div>
	</div>
	
	<div class="row multi-columns-row">
		<div class="col-md-4 col-lg-3">...</div>
		<div class="col-md-4 col-lg-3">...</div>
		<div class="col-md-4 col-lg-3">...</div>
		<div class="col-md-4 col-lg-3">...</div>
		<div class="col-md-4 col-lg-3">...</div>
		<div class="col-md-4 col-lg-3">...</div>
	</div>
	
	<div class="row multi-columns-row">
		<div class="col-lg-3">...</div>
		<div class="col-lg-3">...</div>
		<div class="col-lg-3">...</div>
		<div class="col-lg-3">...</div>
		<div class="col-lg-3">...</div>
		<div class="col-lg-3">...</div>
	</div>