adding values in px and rem for margin