converting padding px to percentage