Welcome to the Treehouse Community

The Treehouse Community is a meeting place for developers, designers, and programmers of all backgrounds and skill levels to get support. Collaborate here on code errors or bugs that you need feedback on, or asking for an extra set of eyes on your latest project. Join thousands of Treehouse students and alumni in the community today. (Note: Only Treehouse students can comment or ask questions, but non-students are welcome to browse our conversations.)

Looking to learn something new?

Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and a supportive community. Start your free trial today.

CSS

Darren Franks
Darren Franks
1,006 Points

Setting 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!

Leda Anastasia Tsoukala
Leda Anastasia Tsoukala
2,465 Points

If I understand right, you mean the property box-sizing with the value border-box " box-sizing: border-box;"

7 Answers

Leda Anastasia Tsoukala
Leda Anastasia Tsoukala
2,465 Points

then that's it... .wildlife { box-sizing: border-box; }

if it doesn't accept that as an answer check for misspellings !

Darren Franks
Darren Franks
1,006 Points

Hi 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
Darren Franks
1,006 Points

can anyone please help me! i am very grateful!

Leda Anastasia Tsoukala
Leda Anastasia Tsoukala
2,465 Points

Do 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
Darren Franks
1,006 Points

sorry 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
Darren Franks
1,006 Points

Thank 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! :-)