changing method of setting position via css style attributes