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 trial

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
51,094 Points


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!