The forums ran from 2008-2020 and are now closed and viewable here as an archive.

Home Forums CSS understanding grid templates in photoshop Re: understanding grid templates in photoshop

Andy Howells

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.