Home › Forums › CSS › understanding grid templates in photoshop › Re: understanding grid templates in photoshop
February 19, 2013 at 6:07 am
#125189
Participant
I know what you mean about padding on containers etc, especially on page wraps for example where you have a background and want some spacing inside it.
If you’re building responsively, or at least building with percentages this problem will fix itself. However, don’t forget the power of box-sizing: border-box;
as it allows you to have explicit widths that won’t be interfered with by the padding.
Additionally for the problem you’ve noted, usually what I will do is not add padding to the container but to the children instead. It’s more difficult to maintain, but it means you have more control.