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 trialNeil Bobenhouse
1,184 PointsColors, Patterns and Selecting Objects
When creating a object with a pattern inside how are you able to resize the overall object yet retain the same size of the pattern inside the object. For example the stars in a pattern become distorted after resizing the square. thanks
1 Answer
austenpayan
10,218 PointsIf you are using an image pattern as a background, you can use the background-size:cover; css property to make the background size proportionately with the size of the box.