@Kyle G. Hey thanks! I can't take the credit though, I totally stole the template from Steve K.'s OGL sheet and used DXWarlock's Health colours script as an example of how to implement it. EDIT: Just saw your post. Idea stolen. ;) @Marth Lowell Yes, you have to use inline css. It's a bit of a pain, but what I've seen others do (and stolen the idea myself) is to make the css a variable within your function. That way when you make a change, it almost acts like a separate css sheet - you only have to make the change in one place. An example: var divstyle = 'style="width: 189px; border: 1px solid black; background-color: #ffffff; padding: 5px; font-size: 12px;"';
sendChat('Test', '<div ' + divstyle + '>My fancy div</div>';