set position absolute in decorateElement