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 Bootstrap 4 Basics (Retired) Responsive Layouts with the Bootstrap Grid Styling Content

what is the difference between 'p-t-3' and 'pt-5'?

'p-t-3' means padding top 3 rem. then what does 'pt-5' stand for? If bootstrap doesn't use rem unit anymore, what unit do they use for measurement?

2 Answers

Benjamin Larson
Benjamin Larson
34,055 Points

You can read more at the Boostrap 4 Documentation: Spacing, but essentially the values for spacing range from 0 - 3rem as follows:

  • 0 - Zero
  • 1 - 0.25rem
  • 2 - 0.5rem
  • 3 - 1.0rem
  • 4 - 1.5rem
  • 5 - 3.0rem

These are the defaults but the Sass variables can be modified.

Thank you Benjamin!

vincent batteast
vincent batteast
40,366 Points

http://getbootstrap.com/css/#grid

here is a web site for everything bootstrap. I didn't find a answer to your question put it say the bootstrap use px for unit of measurement.

Thank you Vincent!