Changes styling from absolute to relative