I go into all this in The "Inside" Problem. The gist: you want an edge-to-edge container, but the content inside to have a limited width.