Using floating point percentages for more accuracy on large screen resizes