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

CSS

Mona Jalal
Mona Jalal
4,302 Points

Media Query for Responsive Design and Bootstrap 4

I am using Bootstrap 4 (after following Bootstrap 4 basics course) and made monajalal.com website. However now I am learning CSS Layout and came across @media query and I wonder if I am using Bootstrap CDN, would I need @media queries for responsive design or if I do, where should I write them? In a separate style.css file?

In general, while it is faster and more reliable to use Bootstrap CDN using a web link, do you suggest downloading it and linking to it? Any suggestion and reasoning is really appreciated!

https://teamtreehouse.com/library/css-layout-basics/getting-started-with-css-layout/using-a-mobile-first-approach

1 Answer

Shane Oliver
Shane Oliver
19,977 Points

Since your site is using all bootstrap styles you don't need to worry too much about them, the framework will take care of it provided you add the proper classes to your markup.

Typically you use a downloaded local copy of an external js or css resource when developing locally and a cdn hosted version when you push your site live.