changed css to percentages