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 trialBrittney Coble
16,474 PointsCustom Image for Jumbotron
When adding a background image to the jumbotron, should the image be sized appropriately before using? Or will it be scaled to fit based on the jumbotron's size?
1 Answer
Liam Clarke
19,938 PointsHi Brittney
It depends on the image, the image may look pixelated or stretched if you explicitly set the size of the background image.
You can add class properties that will scale the image to its container with the use of auto and percentages however depending on the aspect ratio and resolution will depend on how that image looks.
When I use images on a site I will typically keep them the same aspect ratio and have 3 different resolutions, small medium, and large. That way all images/jumbotrons on the site have the same look and feel without losing quality.