position, offsetWidthRatio are added. coded for body tag only