Heads up! To view this whole video, sign in with your Courses account or enroll in your free 7-day trial. Sign In Enroll
Well done!
You have completed Practice the CSS Box Model!
You have completed Practice the CSS Box Model!
Preview
Welcome back. How did you do? Let’s go over how I solved this challenge.
Related Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign upRelated Discussions
Have questions about this video? Start a discussion with the community and Treehouse staff.
Sign up
For the div with an ID of box, I'll
start by applying 25 pixels of padding
0:00
and set the background
color to lightsteelblue.
0:05
Here's where it gets interesting.
0:17
The instructions specify to make
this box 90% of both the width and
0:19
the height of the viewport.
0:24
Now, if we try using percent values,
you'll notice that works for
0:27
You need to sign up for Treehouse in order to download course files.
Sign upYou need to sign up for Treehouse in order to set up Workspace
Sign up