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 trialDarren Franks
1,006 PointsSetting padding and boarder widths
Hi i am trying to give .wildlife the property and value that forces any padding and boarder widths into its total width and height..? Please can you tell me how to write this; i know i will know when i see it but ive drawn a blank? Thankyou!
7 Answers
Leda Anastasia Tsoukala
2,465 Pointsthen that's it... .wildlife { box-sizing: border-box; }
if it doesn't accept that as an answer check for misspellings !
Darren Franks
1,006 PointsHi Leda, yes i do; so far it looks like this and i want to add property and value that forces any padding and boarder widths into its total width and height at the end? background-image: url('img/bear.jpg'); background-repeat: no-repeat; background-position: center; background-size: cover;
Darren Franks
1,006 Pointscan anyone please help me! i am very grateful!
Leda Anastasia Tsoukala
2,465 PointsDo you mean the image to be in its full size? I don't really understand what exactly you want to do. It really seems like you are asking for the property I gave you on my last post! Please explain some more! Additionally, you can also ask for an answer from the suggested users by team tree house you can see them at the bottom of your post!
Darren Franks
1,006 Pointssorry its not a background image its a box area called '.wildlife' and i am being asked to: Give the .wildlife property and value that forces any padding and boarder widths into its total width and height?
Darren Franks
1,006 PointsThank you so much my dear it worked!! Sorry it took so long to get back but its worked and i am so grateful! Have a lovely evening! :-)
Leda Anastasia Tsoukala
2,465 PointsGlad I could help! :)
Leda Anastasia Tsoukala
2,465 PointsLeda Anastasia Tsoukala
2,465 PointsIf I understand right, you mean the property box-sizing with the value border-box " box-sizing: border-box;"