Avoid using non-existent .height attribute