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
Tadas Vaičliuis
1,719 PointsFinally, give .wildlife the property and value that forces any padding and border widths into its total width and height
Help me write this code Please kindly?
2 Answers
Sam Baines
4,315 PointsHi Tadas - the code you need is:
.wildlife {
box-sizing: border-box;
}
But I suggest if you haven't understood this property and its values for you to re watch the videos again to make sure it sticks in your knowledge.
Zoltán Holik
3,401 PointsFor cross browser compatibility use this:
.wildlife{
-webkit-box-sizing: border-box; /* Safari 3.0 - 5.0, Chrome 1 - 9, Android 2.1 - 3.x */
-moz-box-sizing: border-box; /* Firefox 1 - 28 */
box-sizing: border-box; /* Safari 5.1+, Chrome 10+, Firefox 29+, Opera 7+, IE 8+, Android 4.0+, iOS any */
}
Tadas Vaičliuis
1,719 PointsThanks