css update for offsetWidthRatio