Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trial
Unsubscribed User
8,167 PointsMasonry Javascript
Hey guys,
I'm using masonry and have a set column with of 220
my js code is
var $container = $('#container');
$container.imagesLoaded( function(){
$container.masonry({
itemSelector : '.box',
columnWidth: 220,
isAnimated: !Modernizr.csstransitions,
isFitWidth: true
});
});
It works great, I'm just trying to change the column width to 150px when the users screen width has a max-width: 450px. Does anyone know the code to write this??
Thanks in advance.
1 Answer
James Barnett
39,199 PointsFor topics that Treehouse doesn't cover, you might get a better response on intermediate questions like this over on Stackoverflow