checking and setting float heights