add styles for a element