FAQ: The Box Model - Borders


This community-built FAQ covers the “Borders” exercise from the lesson “The Box Model”.

Paths and Courses
This exercise can be found in the following Codecademy content:

Web Development

Learn CSS

FAQs on the exercise Borders

Join the Discussion. Help a fellow learner on their journey.

Ask or answer a question about this exercise by clicking reply (reply) below!

Agree with a comment or answer? Like (like) to up-vote the contribution!

Need broader help or resources? Head here.

Looking for motivation to keep learning? Join our wider discussions.

Learn more about how to use this guide.

Found a bug? Report it!

Have a question about your account or billing? Reach out to our customer support team!

None of the above? Find out where to ask other questions here!


i dont understand the pixels


What about pixels do you not understand?

Pixels are a unit of measurement in CSS, just like inches or centimeters would be to us. A pixel on a user’s screen is one tiny dot of light. If you are setting a border to be a certain amount of pixels (px) wide, you are telling it to have a width that fills that many “pixels” on the user’s screen.