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
Baard Kolstad
976 PointsFluid rectangle
Hi, is there any way to make a fluid rectangle that has a max width of 300px and max height of 200px? Feel like i have tried everything...
2 Answers
Baard Kolstad
976 PointsFigured it out, the solution was to wrap the rectangle div with another div, constraining the proportions with max-height: 200px and max-width: 300px.
vandevski
20,617 PointsGlad I could help! :)