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 Basics Responsive Layouts With the Bootstrap Grid Styling Content

Bartlomiej Zabielski
PLUS
Bartlomiej Zabielski
Courses Plus Student 10,363 Points

Bootstrap units for padding margin

I tried to google and read the bootstrap documents website but i cant find the answer. I watched Guil's bootstrap videos and he mentions that setting pt-4 on the container padds top padding of 1.5rem. Where can i find unit guidelines for bootstrap? Wouldnt 4 just be 4 rem?

2 Answers

I know what you mean, I would expect 4 to be 4rem.

You can see how spacing is calculated on the links below:

https://v4-alpha.getbootstrap.com/utilities/spacing/

$spacer default value:

https://v4-alpha.getbootstrap.com/getting-started/options/

Bartlomiej Zabielski
PLUS
Bartlomiej Zabielski
Courses Plus Student 10,363 Points

you are the best thank you.

EDIT: >< i found that page before but was to impatient and did not read it properly. I can see how its calculated now thank you.