Make percent width/height/margin/padding not crash

r? @brson