move style= outside of for loop so the style attribute isn't repeated