Changing px to % and auto