change attr to style for css