Applying padding and margins


show more Applying padding and margins provides you with in-depth training on Web. Taught by Laurie Burruss as part of the Creating a CSS Style Guide: Hands-On Training show less
please wait ...

Applying padding and margins

Although it's beginning to look more page-like and more like a style guide that we might show around our team, it's still too tight. We have no negative and positive space. We really need to talk about margins and padding. It's confusing to beginners, it's even confusing to people who have been doing it a long time, but as you can see, the box is clearly evident. If I add margins, that will add space or push away from the box. Think of your hand going out to the side and pushing someone away.

If I add padding, it goes inside the box, so think of taking your hands and holding yourself tightly. It goes away from the inside edge. For instance, if we are shipping something with FedEx, we would put padding inside in the box. That's the way I think of it. I really do literally think of it as sort of like packing a box, things outside the box and inside the box. I'll say it one more time. Pushing away outside the box, margin; putting something inside the box would be p...

Applying padding and margins
Video duration: 4m 57s 3h 31m Beginner

Viewers:

Applying padding and margins provides you with in-depth training on Web. Taught by Laurie Burruss as part of the Creating a CSS Style Guide: Hands-On Training

Subject:
Web
Software:
CSS
Author:
please wait ...