if all are 0 then dont add px. just margin: 0; (please validate the CSS with CSS validator)