use attr instead of style for height/width