Set the height and width of an element