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 trialAnthony Miller
Courses Plus Student 3,257 PointsImages for responsive websites
When building a responsive website, how do you ensure that the images stay crisp when viewed from a large screen such as a 32in computer monitor or a 55in LED television?
1 Answer
Sam Roth
1,457 PointsYou will need to have a very large image file in order to ensure crystal-clear quality on a large device such as a TV. This will result in (much) longer loading times, but obviously looks very nice when loading has finished.
In order to cut down on loading times on smaller devices, you should take advantage of CSS media queries. Bootstrap's documentation provides instructions on how to implement these. If you want to create a specific media query for say, a 4K television, you can do that as well. You just need to know the standard resolution; use 3840px x 2160px to be safe.
@media (min-width: 700px) { ... }
Within those media queries, you would call your css classes and specify the images from within them.