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