allow for width/height to be given in %