change width unit from pixel to percent.