Use CSS media queries. Put the extra margins only in the min-width: XXXX section. Like so...