I will insist putting styles in a stylesheet. Hard coding styles in runnable code is in general a bad practice.