This code converts HTML selectors to percentages for responsive design. Improvements welcome!