allow width/height to be given in %