add style attribute to static and text fields