css change along with text edit