Wrong spacing when scaling width down

When I scale my page down in width (linked to domain), the spacing at the top and bottom part doesnt work anymore.