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 trialDavid Keck
5,723 PointsWhat on earth are the two types of constraints? Not horizontal and vertical?
What are the two types of constraints?
1 Answer
roohart
5,529 PointsI think what you're looking for is; Position and Size. For an element to be displayed on the screen we need to provide two pieces of information; Position and Size. Position and Size then both have two "variables" in them. Position: x- and y -coordinates Size: Width and height
David Keck
5,723 PointsDavid Keck
5,723 PointsThat right there is a great answer. Thank you, Roo!
Vladimir Poplavskiy
1,417 PointsVladimir Poplavskiy
1,417 PointsThank's a lot.