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 trialmohammed mayat
4,228 Pointsimage responsive
I am creating mock website, I want to know if you think my image look squashed in my couresel, on mobile portrait view if it does how would I fix this codepen https://codepen.io/mmayat10/pen/EvzYNP
1 Answer
hamsternation
26,616 PointsI added this line to your css... seems to do the trick...
.carousel-item {
height: calc(100vw/1.5);
}