add to_font_size function to change font size of an element