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 trialDaniel Schroeder
13,859 PointsBootstrap uses pixels for media-query ranges as of 9-5-16!
I noticed that in the video, the Bootstrap website had ems listed for the different media-query ranges, but as I'm following along on the Bootstrap website today (9-5-16) they have changed this to pixels. Not really a big deal, but I figured a teacher's note may be in order since this has changed!
1 Answer
Kevin Korte
28,149 PointsEdit ** I'm wrong as of 9/27/15. See https://github.com/twbs/bootstrap/pull/17403
Alpha V4, like what's being used in the video, has moved to ems for media queries. But the current stable version is V3, which is probably what you're using, because V3 used pixels for the media queries.
It's the only thing that makes sense, as I know V3 never had em media queries, and they wouldn't have spent the energy to change it. As a matter of fact, they announced yesterday they are discontinuing any further support or effort on V3 in order to finish V4 and move it into a stable release.
Daniel Schroeder
13,859 PointsDaniel Schroeder
13,859 PointsCheck out this link, which is the same page that Gil was using in the video. That's where I see the px used for breakpoints. I think it's V4 (due to the URL) but I could be wrong. http://v4-alpha.getbootstrap.com/layout/overview/
Kevin Korte
28,149 PointsKevin Korte
28,149 PointsNope, you're right, I'm just out of the times, it was almost a year ago they switched back..lol.
Found it here: https://github.com/twbs/bootstrap/pull/17403